w (Unix)

The command w on many Unix-like operating systems provides a quick summary of every user logged into a computer,[1] what each user is currently doing, and what load all the activity is imposing on the computer itself. The command is a one-command combination of several other Unix programs: who, uptime, and ps -a.

w
Operating systemUnix and Unix-like
TypeCommand

Example

Sample output (which may vary between systems):

$ w
 11:12am up 608 day(s), 19:56,  6 users,  load average: 0.36, 0.36, 0.37
User     tty       login@  idle  what
smithj   pts/5      8:52am       w
jonesm   pts/23    20Apr06    28 -bash
harry    pts/18     9:01am     9 pine
peterb   pts/19    21Apr06       emacs -nw html/index.html
janetmcq pts/8     10:12am 3days -csh
singh    pts/12    16Apr06  5:29 /usr/bin/perl -w perl/test/program.pl
gollark: HTTP/2 predates the encrypted SNI thing, and indeed the latter is not really implemented many places yet.
gollark: ```osmarks@fenrir ~/Downloads> curl -I https://osmarks.tk/HTTP/2 200 server: nginx/1.18.0date: Mon, 09 Nov 2020 21:50:42 GMTcontent-type: text/htmlcontent-length: 11144last-modified: Mon, 21 Sep 2020 17:33:13 GMTetag: "5f68e3d9-2b88"strict-transport-security: max-age=63072000; preload; includeSubDomainsreferrer-policy: strict-origin-when-cross-originaccept-ranges: bytes```
gollark: 1. It is set up and works2. Encrypted SNI is a separate (TLS) thing
gollark: WRONG!
gollark: You cannot actually change my domain config.

References

  1. David Martínez Perales. Learning UNIX with examples.


This article is issued from Wikipedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.