Name
w — stdin stdout - file -- opt --help --version
Synopsis
w [username
]
The w
command displays the
current process running in each shell for all logged-in
users:
➜ w
10:51pm up 8 days, 3:42, 8 users,
load averages: 0.24 0.52 0.53
USER TTY FROM LOGIN@ IDLE WHAT
barrett console - Thu22 27:13 emacs
jones s000 host1 6Sep03 2:33 -
smith s001 host2 6Sep03 - w
The top line is the same one printed by uptime
. The columns indicate the user’s
terminal, originating host (if applicable), login time, idle time, and
the current process. Provide a username to see only that user’s
information.
Useful options
| Don’t print the header line. |
Get Macintosh Terminal Pocket Guide now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.