who command in Linux with Examples

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:

who command in Linux with Examples

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 Linux? It is the most popular in-use terminal Linux show who is logged on.

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!

About HuuPV

My name is Huu. I love technology, especially Devops Skill such as Docker, vagrant, git, and so forth. I like open-sources, so I created DevopsRoles.com to share the knowledge I have acquired. My Job: IT system administrator. Hobbies: summoners war game, gossip.
View all posts by HuuPV →

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.