Who (Unix)


Who (Unix)

The standard Unix command who displays a list of users who are currently logged into a computer.

The who command is related to the command w, which provides the same information but also displays additional data and statistics.

Specification

The Single Unix Specification (SUS) specifies that who should list information about accessible users. The XSI extension also specifies that the data of the username, terminal, login time, process ID, and time since last activity occurred on the terminal, furthermore, an alternate system database used for user information can be specified as an optional argument to who.

The command can be invoked with the arguments am i or am I (so it is invoked as who am i or am I), showing information about the current terminal only (see the -m option below, of which this invocation is equivalent).

Usage

The SUS without extensions only specifies the following -m, -T, and -u options, all other options are specified in the XSI extension.

:-a, process the system database used for user information with the -b, -d, -l, -p, -r, -t, -T and -u.:-b, show time when system was last rebooted:-d, show zombie processes and details:-H, show column headers:-l, show terminals where a user can log in:-m, show information about the current terminal only:-p, show active processes:-q, quick format, show only names and the number of all users logged on, disables all other options; equivalent to users command line utility:-r, show runlevel of the init process.:-s, (default) show only name, terminal, and time details:-t, show when system clock was last changed:-T, show details of each terminal in a standard format (see note in Examples section):-u, show idle time; XSI shows users logged in and displays information whether the terminal has been used recently or not

Other Unix and Unix-like operating systems may add extra options. GNU who includes a -i option behaving similarly to -u and a -w option displaying whether the user listed accepts messages (the SUS displays this when -T is specified), yet GNU who and BSD who both omit a number of the above options (such as -a, -b, -d, and others); GNU who instead uses -l to perform DNS lookups on hostnames listed.

Output

The SUS without extensions specifies that the output format is to be "implementation-defined". The XSI extension specifies a format, but notes that it is not fully specified; delimiters and field lengths are not precisely specified. Thus, the format of the output differs considerably among Unix implementations.

See also

*List of Unix programs

External links

* [http://www.opengroup.org/onlinepubs/009695399/utilities/who.html who] -- specification from the Single Unix Specification

Manual pages

* [http://www.gnu.org/software/coreutils/manual/html_node/who-invocation.html who] — manual page from GNU coreutils
* [http://www.openbsd.org/cgi-bin/man.cgi?query=who who] — manual page from OpenBSD


Wikimedia Foundation. 2010.

Look at other dictionaries:

  • Who (Unix) — who est une commande UNIX permettant d afficher des informations concernant des utilisateurs qui sont connectés. Commandes Unix Aide arch · apropos · cal · date · help · …   Wikipédia en Français

  • Who (Unix) — Saltar a navegación, búsqueda who es un comando clásico de Unix que muestra rápidamente los usuarios que actualmente están autentificados en el sistema. Es información bastante general y poco detallada, en contraste al comando w, por ejemplo.… …   Wikipedia Español

  • who (Unix) — Este artículo o sección necesita referencias que aparezcan en una publicación acreditada, como revistas especializadas, monografías, prensa diaria o páginas de Internet fidedignas. Puedes añadirlas así o avisar …   Wikipedia Español

  • Who (Unix) — Who ist ein klassischer Befehl unter Unix Betriebssystemen, der eine Liste der zur Zeit auf dem System angemeldeten Benutzer anzeigt. who ist in der Single Unix Specification standardisiert. Die GNU Implementierung ist Element der GNU core… …   Deutsch Wikipedia

  • who (Unix) — who ist ein klassischer Befehl unter Unix Betriebssystemen, der eine Liste der zur Zeit auf dem System angemeldeten Benutzer anzeigt. who ist in der Single Unix Specification standardisiert. Die GNU Implementierung ist Element der GNU core… …   Deutsch Wikipedia

  • who (Unix) — who est une commande UNIX permettant d afficher des informations concernant des utilisateurs qui sont connectés. La commande who est proche de la commande w, qui fournit le même type d informations, mais w fournit des informations plus détaillées …   Wikipédia en Français

  • Who (UNIX) — who утилита в w показывает текущих пользователей в компьютерной системе. Отличие от w в том, что who не показывает информацию выводимую утилитой uptime. $ who admin ttyp0 Jan 24 02:47 (server14) user ttyp1 Jan 24 06:12 (gw1) Некоторые командной… …   Википедия

  • Who (Unix) — who утилита в w показывает текущих пользователей в компьютерной системе. Отличие от w в том, что who не показывает информацию выводимую утилитой uptime. $ who admin ttyp0 Jan 24 02:47 (server14) user ttyp1 Jan 24 06:12 (gw1) Некоторые командной… …   Википедия

  • UNIX-Kommandos — Unix Systeme zeichnen sich durch eine Vielzahl von Kommandos aus, mit denen sich über eine Shell das Betriebssystem bedienen lässt. Die Syntax dieser Kommandos weicht unter den verschiedenen Systemen voneinander ab. Es existieren die beiden… …   Deutsch Wikipedia

  • Unix-Befehle — Unix Systeme zeichnen sich durch eine Vielzahl von Kommandos aus, mit denen sich über eine Shell das Betriebssystem bedienen lässt. Die Syntax dieser Kommandos weicht unter den verschiedenen Systemen voneinander ab. Es existieren die beiden… …   Deutsch Wikipedia


Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”

We are using cookies for the best presentation of our site. Continuing to use this site, you agree with this.