Linux Basics: who Linux command

Have you ever wanted to see who was all currently logged into your Linux system? Just run the who command:

who

It will print out something like:

thelinuxexperiment  tty7         2019-09-22 19:52 (:0)

As you can see above the user thelinuxexperiment is currently logged in on tty7 (teletype session – likely the GUI of a distribution) as well as the time the user logged in.

There are other things you can do with the who command as well. For example running

whoami

will print out the name of the person who ran the command. This can be useful to make sure you’re about to run the right command under the right user account.

To see all of the information the who command can give you just run:

man who



Be the first to comment

Leave a Reply

Your email address will not be published.


*