The who
command is a utility that displays information about the users who are currently logged into the system.
To use the who
command, you can simply type who
at the command prompt and press Enter
. This will display a list of users who are currently logged into the system, along with the following information:
For example:
$ who user1 tty1 2020-08-12 22:24 user2 tty2 2020-08-12 22:24Swww:ecruo.lautturi.com
This will display the list of users user1
and user2
who are currently logged into the system, along with the terminal and login time for each user.
The who
command does not display the current working directory or the command that the user is currently running.
The who
command has several options that allow you to customize the output. For example, you can use the -b
option to display the last system boot time, or the -u
option to display the current user processes.
For more information about the who
command and its options, you can consult the documentation for your specific Unix or Linux system.