Command line tip - display who is logged in to your system

  • February 12, 2008
  • Avatar for peter
    Peter
    Upfold

A really quick command line tip for you today, and that is how to find out who is logged on to your Linux system. The command I'm going to show you also lets you know where they are logged in from, if they are a remote user, and shows you uptime statistics and other information.

The command itself is actually one of the shortest commands there is - w. Simply run it from the command line like so:

$ w

And it will give you output a little something like this:

18:39:46 up 4 min, 1 user, load average: 0.81, 0.50, 0.22
USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT
peter :0

And that's it!

Avatar for peter Peter Upfold

Home » Articles »