Linux System Administration
Intermediate Commands
who
and
w
The
who
command will show you who is logged on to the system.
[mlevan@localhost IntermediateCommands]$ who
mlevan tty1 Apr 26 14:13
mlevan pts/0 Apr 26 14:13
mlevan pts/1 May 8 16:41
root pts/6 May 3 12:16
The
w
command will show you who is logged on to the system and what they are doing.
[mlevan@localhost IntermediateCommands]$ w
20:29:55 up 12 days, 6:17, 4 users, load average: 2.02, 2.05, 2.07
USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT
mlevan tty1 - 26Apr05 12days 0.79s 0.00s /bin/sh /usr/X11R6/bin/startx
mlevan pts/0 - 26Apr05 12days 0.00s 13.29s kdeinit: kded
mlevan pts/1 - 16:41 0.00s 0.15s 0.01s w
root pts/6 - Tue12 5days 0.02s 0.02s -bash
Prev
Page 17
Next