who command

LINUX-Frequently used commands

who command View the status of logged in users.
who   [Option] 
It shows your login name, the device you are using, the time you logged in and the IP address of the device you are logged in on.
IP addresses do not appear in the results of a who command run from your own computer.
The terminal you are using will be displayed as pts1 or tty1 (where 1 is a number automatically assigned by the computer).
For example, you may be using terminal software to access one computer from several computers.
Each new access increases the pts or tty.
Indicates the number of pts or ttys currently assigned..
Frequently used options
-u Displays the idle time.
-T Indicates whether it is possible to send a message with the "write" command. (+ possible, - not possible)
-i Displays the idle time.
-H The name of the item of information is displayed on the first line of the processing result.
-p Only processes spawned by an active 'init' command will be displayed.
-q Display only the names and number of users currently logged in.
-b Displays the latest system boot time information.
-d Display only terminated processes.
-w Indicates whether or not the message was received by "write". (+receivable, -receivable not)
-r Only the current run level is shown.
-t Displays the latest system clock change time information.
-a It shows the latest start time, terminated "processes", "logged in processes", "init generated processes", "run levels", "latest system clock change time" and "logged in users".
-s Displays user name, device used and connection time. (Used by default)
-m Display your own information.
Example: Display the list of logged in users.
$  who
root pts/1 Aug21 00:29
root pts/1 Aug 21 00:29 (:1.0)
koro pts/3 Aug 21 00:30
koro pts/4 Jun 3 15:30 (
koro pts/5 Jun 3 15:37 (
panser pts/6 Jun 3 17:50 (
Example: Display your own information.
$ who am i
koro pts/5 Jun 3 15:37 (