LinuxReviws.org --get your your Linux knowledge
> Linux Reviews > Beginners: Learn Linux >

View what users are / was logged on a system

There are several simple commands to show what users are logged a Linux systems.

These commands are standard in all distributions:

   w
   who -a
   users

who and users show who are currently logged on. You can also use last:

   last

Last looks through /var/log/wtmp and displays a log of the last users logged on, including those currently logged on.

Another possibility is to get the users-information from the systems logs:

  grep sshd /var/log/messages

Meet new people