Log in Go to the main page Page Discussion History Go to the file list Go to the site toolbox

Who command, Linux

From NetworkCommands


Image:Tux_64x64.png

A command line program available on most Linux platforms; used to display who is logged on to the device.

Contents

Image:Vm-power-on-medium.png Usage Syntax

who [-options]

Some of the available options are;

  • -a - display all possible output (i.e. all options selected)
  • -b - display time of last boot
  • --login - display system login processes
  • -s - display only name, line, and time (this is the default)

Image:accessories-text-editor-v2-medium.png Linux Usage Notes

With most Linux or Unix commands;

  • Brief help can be displayed using the option/keyword: -h or --help, for example: chmod --help
  • A full command manual can be displayed using the man command followed by the command name, for example: man chmod
  • Sometimes 'info' pages are used instead of or to provide more information than man pages; for example: info chmod
  • Version information can be display using the option/keyword: -v or --version, for example: chmod --version


Image:utilities-terminal-medium.png Typical Output

who;

testuser  pts/0        Feb 28 11:44 (11.12.13.100)

who -b;

system boot  Dec 11 18:14

who --login;

LOGIN    ttyS0        Dec 11 18:14              1525 id=co

who -a;

                        Dec 11 18:14                17 id=si    term=0 exit=0
           system boot  Dec 11 18:14
           run-level 3  Dec 11 18:14                   last=S
                        Dec 11 18:14               873 id=l3    term=0 exit=0
                        Dec 11 18:14              1523 id=SV
                        Dec 11 18:14              1524 id=od
LOGIN      ttyS0        Dec 11 18:14              1525 id=co
testuser + pts/0        Feb 28 11:44   .          4107 (11.12.13.100)
           pts/1        Feb 28 13:50              6340 id=ts/1  term=0 exit=0

Image:object-flip-horizontal-medium.png Command Equivalents

The Zebra routing application suite command equivalent has the same name: who command, Zebra

The Cisco command equivalent is the who command, Cisco or the show users command which performs the same function

The Cisco CSS command equivalent is the show lines command

The Extreme command equivalent is the show session command, which includes ssh connection information.

Image:icemon-medium.png Related Articles

Information on Linux commands Image:Tux-small.png

Information on F5 BigIP commands Image:F5-logo-small.png

Information on Cisco commands Image:Cisco-logo-small.png

Information on Vyatta commands Image:Vyatta-logo-small.png

Information on Extreme commands Image:Extreme-logo-small.png

Information on Blue Coat SGOS commands

Information on Nokia IPSO commands


Image:internet-group-chat-small.png We really do appreciate all feedback so please do send your comments, suggestions or corrections to steve#networkstuff.eu (replacing the # with an @)



Site Toolbox:

Personal tools
This page was last modified on 1 September 2008, at 16:34. - This page has been accessed 45 times. - Disclaimers - About NetworkCommands
Powered by MediaWiki