O'Reilly logo

Linux and Unix Shell Programming by David Tansley

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

who

Format:

who options 

Options:

-a Display all output
-r Report current run level (for LINUX use the command runlevel)
-s List names and time fields
whoami Display the name of the user running the command. This is not an option to the who command, and can be called by itself.

The who command reports who is logged on to to the system. To show users logged on:

					$ who 
root        console        Apr 22 13:27 
pgd         pts/3          Jun 14 15:29 
peter       pts/4          Jun 14 12:08 
dave        pts/5          Jun 14 16:10
				

Who am I?

					$ whoami 
dave
				

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required