How to See Who Is Currently Logged In on Linux/BSD and Where This Is Logged

Practice



To see which users are currently online (i.e. logged into the system), enter the command:

# who

This command will show you all the users who are currently logged into this server.

And the log of successful and not-so-successful logins is located at:

/var/log/auth.log

where, among other things, user logins to the system are recorded, along with various information related to authentication. For example, it logs every use of the "sudo" utility.

Comments

To leave a comment

If you have any suggestion, idea, thanks or comment, feel free to write. We really value feedback and are glad to hear your opinion.
To reply

Lectures and tutorial on "LINUX operating system"

Terms: LINUX operating system