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

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 - http://peter.upfold.org.uk/

Peter Upfold is a technology enthusiast from the UK. Peter’s interest in Linux stems back to 2003, when curiosity got the better of him and he began using SUSE 9.0. Now he runs Linux Mint 9 on the desktop, runs a CentOS-based web server from home for his personal website and dabbles in all sorts of technology things across the Windows, Mac and open source worlds.

Home » Articles »

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

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