Show who is logged on and what they are doing.


SUBMITTED BY: Guest

DATE: June 2, 2014, 2:28 p.m.

FORMAT: Text only

SIZE: 1.6 kB

HITS: 5860

  1. NAME
  2. w - Show who is logged on and what they are doing.
  3. SYNOPSIS
  4. w - [husfV] [user]
  5. DESCRIPTION
  6. w displays information about the users currently on the machine, and their processes. The header shows, in this order, the current time, how long the system has been running, how many users are currently logged on, and the system load averages for the past 1, 5, and 15 minutes.
  7. The following entries are displayed for each user: login name, the tty name, the remote host, login time, idle time, JCPU, PCPU, and the command line of their current process.
  8. The JCPU time is the time used by all processes attached to the tty. It does not include past background jobs, but does include currently running background jobs.
  9. The PCPU time is the time used by the current process, named in the "what" field.
  10. COMMAND-LINE OPTIONS
  11. -h
  12. Don't print the header.
  13. -u
  14. Ignores the username while figuring out the current process and cpu times. To demonstrate this, do a "su" and do a "w" and a "w -u".
  15. -s
  16. Use the short format. Don't print the login time, JCPU or PCPU times.
  17. -f
  18. Toggle printing the from (remote hostname) field. The default as released is for the from field to not be printed, although your system administrator or distribution maintainer may have compiled a version in which the from field is shown by default.
  19. -V
  20. Display version information.
  21. user
  22. Show information about the specified user only.
  23. FILES
  24. /var/run/utmp
  25. information about who is currently logged on
  26. /proc
  27. process information

comments powered by Disqus