who — stdin stdout - file -- opt --help --version
who [options
] [filename
]
The who
command lists all
logged-in users, one user shell per line:
$ who smith pts/0 Sep 6 17:09 (:0) barrett pts/1 Sep 6 17:10 (10.24.19.240) jones pts/2 Sep 8 20:58 (192.168.13.7) jones pts/4 Sep 3 05:11 (192.168.13.7)
Normally, who
gets its data
from the file /var/run/utmp.
The filename
argument can specify a
different data file, such as /var/log/wtmp for past logins or
/var/log/btmp for failed
logins.[17]
|
Print a row of headings as the first line. |
|
For remotely logged-in users, print the hostnames of origin. |
|
Also print each user’s idle time at his/her terminal. |
|
Also indicate whether
each user’s terminal is writable (see |
|
Display information only about yourself, i.e., the user associated with the current terminal. |
|
Quick display of
usernames only, and a count of users. Much like the |
3.141.202.54