command: w
purpose: displays information about the users currently on the machine, and
their processes.it is a combination of uptime and who command
syntax: $ w [-husfVo] [user]
-s without login time, JCPU and PCPU
JCPU: Total CPU time used by the user since login
PCPU: CPU time of the currently running process
-h skip header
-u ignore uid of processes
-f toggle FROM field (default on)
-o old-style output
-V display version
example:
1. To displays users currently logged in and their process along-with shows
load averages. also shows the login name, tty name, remote host, login
time, idle time, JCPU, PCPU, command and processes.
$ w
2. To display without JCPU and PCPU
$ w -s
3. To display without header
$ w -h
regards,
dhanasekar
_______________________________________________
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
ILUGC Mailing List Guidelines:
http://ilugc.in/mailinglist-guidelines