who command Displays a list of users who are currently logged into the computer?
The who
command in Linux is used to display information about users who are currently logged in to the system. It provides details such as username, terminal, login time, and remote host. Here are some examples of using the who
command:
On the man page, the describes it
- who – show who is logged on.
man who – More details information.
who command in Linux with Examples?
$ who
Show only the username and login time:
who -u
Include the idle time of logged-in users:
who -u -i
Show the IP addresses of remote hosts:
who -a
Show the process ID associated with each login session:
who -p
Conclusion
who command is the simple command in
These are some common examples of using the who
command. There are additional options available, which can be explored by referring to the command’s manual page using man who
or by checking the command’s help using who --help
. Thank you for reading the DevopsRoles page!