who command Displays a list of users who are currently logged into the computer?
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
On the man page, the describes it
- who – show who is logged on.
manwho – More details information.
who command in Linux with Examples?
Show only the username and login time:
Include the idle time of logged-in users:
who -u -i
Show the IP addresses of remote hosts:
Show the process ID associated with each login session:
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!