[root@server~]# Who

root     tty1         2012-03-01 09:05 (:0)

root     pts/0        2012-03-01 09:47 (192.200.1.205)

[root@server~]# who –a

system boot  2012-03-01 09:03       run-level 5  2012-03-01 09:03

LOGIN      tty2         2012-03-01 09:03              2659 id=2

LOGIN      tty3         2012-03-01 09:03              2661 id=3

LOGIN      tty4         2012-03-01 09:03              2665 id=4

LOGIN      tty5         2012-03-01 09:03              2670 id=5

LOGIN      tty6         2012-03-01 09:03              2681 id=6

root     – tty1         2012-03-01 09:05  old           2845 (:0)

root     + pts/0        2012-03-01 09:47 00:08      5624 (192.200.1.205)

[root@server~]# who –b        (time of last system boot)

system boot  2012-03-01 09:03

[root@server~]# who –d        (print dead processes)

pts/0        2012-03-01 09:07                 0 id=/0    term=0 exit=0

[root@server~]# who –l        (print system login processes)

LOGIN    tty2         2012-03-01 09:03              2659 id=2

LOGIN    tty3         2012-03-01 09:03              2661 id=3

LOGIN    tty4         2012-03-01 09:03              2665 id=4

LOGIN    tty5         2012-03-01 09:03              2670 id=5

LOGIN    tty6         2012-03-01 09:03              2681 id=6

[root@server~]# who –q     (all login names and number of users logged on)

root root root

# users=3

Posted in: Linux.
Last Modified: August 28, 2013

Leave a reply