Which of the following commands can be used to get information about yourself? A. who am i B. i /4 C. pwd D. which E. None of the above

who am i
i /4
pwd
which E. None of the above

The correct answer is: A. who am i

The command who am i will print your username, hostname, and current working directory.

The command i /4 will print your process ID, user ID, group ID, and session ID.

The command pwd will print the current working directory.

The command which will print the full path to the executable file with the given name.

None of these commands will print information about yourself, except for who am i.

Exit mobile version