ADVERTISEMENT

Linux Commands ❯ w

w

Show who is logged on and what they are doing.
syntax:

w [options] user [...]
  • w
    displays information about the users currently on the machine and their processes. the header section provides a summary of the system up time and number of users currently logged in.
  • w user_1
    displays information specific to user_1 and its processes
  • w -f
    displays information about the users currently on the machine and their processes with the from( remote host) information toggled.
  • w -h
    displays information about the users currently on the machine and their processes without header information which sums up the system uptime and number of users logged in etc.
  • w -i
    displays information about the users currently on the machine and their processes with remote host name as IP address format
  • w -s
    displays information about the users currently on the machine and their processes without PCPU(CPU time of the currently running process) and JCPU(Total CPU time used by the user since login ) information