Difference between revisions of "Who"
Jump to navigation
Jump to search
(12 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
− | + | <code>who</code> command shows who is logged on. https://linux.die.net/man/1/who | |
Line 6: | Line 6: | ||
root pts/2 2020-04-27 07:25 (192.168.0.172:S.1) | root pts/2 2020-04-27 07:25 (192.168.0.172:S.1) | ||
ubuntu pts/3 2020-04-27 09:06 (192.168.0.155) | ubuntu pts/3 2020-04-27 09:06 (192.168.0.155) | ||
+ | |||
+ | |||
+ | who -u | ||
+ | root pts/1 2020-04-27 07:25 02:23 7525 (192.168.0.172:S.0) | ||
+ | root pts/2 2020-04-27 07:25 02:24 7663 (192.168.0.172:S.1) | ||
+ | ubuntu pts/3 2020-04-27 09:06 . 20167 (192.168.0.155) | ||
who -b | who -b | ||
− | system boot 2020-04-27 07:23 | + | system [[boot]] 2020-04-27 07:23 |
+ | |||
+ | who -all | ||
+ | system boot 2020-04-27 07:23 | ||
+ | run-level 5 2020-04-27 07:23 | ||
+ | LOGIN ttyS0 2020-04-27 07:23 1469 id=tyS0 | ||
+ | LOGIN tty1 2020-04-27 07:23 1479 id=[[tty]]1 | ||
+ | pts/0 2020-04-27 07:24 6645 id=ts/0 term=0 exit=0 | ||
+ | root + pts/1 2020-04-27 07:25 02:19 7525 (192.168.0.172:S.0) | ||
+ | root + pts/2 2020-04-27 07:25 02:20 7663 (192.168.0.172:S.1) | ||
+ | ubuntu - pts/3 2020-04-27 09:06 . 20167 (192.168.0.155) | ||
+ | |||
+ | |||
+ | == Related commands == | ||
+ | * <code>[[qwinsta]]</code> (Windows) | ||
+ | * <code>[[lslogins]]</code> (<code>[[util-linux]]</code> package) | ||
+ | * <code>[[whoami]]</code> | ||
+ | * <code>[[SELECT current user;]]</code> | ||
== See also == | == See also == | ||
* {{uptime}} | * {{uptime}} | ||
+ | * {{WHO}} | ||
[[Category:Linux]] | [[Category:Linux]] |
Latest revision as of 12:26, 4 August 2022
who
command shows who is logged on. https://linux.die.net/man/1/who
who root pts/1 2020-04-27 07:25 (192.168.0.172:S.0) root pts/2 2020-04-27 07:25 (192.168.0.172:S.1) ubuntu pts/3 2020-04-27 09:06 (192.168.0.155)
who -u root pts/1 2020-04-27 07:25 02:23 7525 (192.168.0.172:S.0) root pts/2 2020-04-27 07:25 02:24 7663 (192.168.0.172:S.1) ubuntu pts/3 2020-04-27 09:06 . 20167 (192.168.0.155)
who -b system boot 2020-04-27 07:23
who -all system boot 2020-04-27 07:23 run-level 5 2020-04-27 07:23 LOGIN ttyS0 2020-04-27 07:23 1469 id=tyS0 LOGIN tty1 2020-04-27 07:23 1479 id=tty1 pts/0 2020-04-27 07:24 6645 id=ts/0 term=0 exit=0 root + pts/1 2020-04-27 07:25 02:19 7525 (192.168.0.172:S.0) root + pts/2 2020-04-27 07:25 02:20 7663 (192.168.0.172:S.1) ubuntu - pts/3 2020-04-27 09:06 . 20167 (192.168.0.155)
Related commands[edit]
qwinsta
(Windows)lslogins
(util-linux
package)whoami
SELECT current user;
See also[edit]
uptime
,last
,who
, pts, tty,journalctl --list-boots, systeminfo , tuptime
- WHO, Fauci, OMS, NOMA, NHS, Bill Gates, Vaccine, GAVI, WHO's Pandemic Treaty, Sugar
Advertising: