How to Check Currently Logged in Users in Linux?

You can use the following given commands to check currently logged in users in Linux.
To execute any of the commands, first login to SSH with required credentials.
who command: Type the command and hit Enter. List of all users will appear.
Now, let us see some of the arguments with who command.
who -a
who -b
who -H
who -q
Other commands that are used to get the list of currently logged in users.
w command
w -s
w -u
w -h
id
id -un
users

That’s it !

Check the blog to know detailed information of the given commands.
  • check currently logged in users in Linux, how to check the current working user and its process in Linux, list of all logged in users, how to get the list of currently logged in users, how to analyze which user is currently login for which process
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

What are some Basic SSH commands?

List of some basic SSH commands are: ls – This command is used to list all files and...

How to connect to SSH?

Putty is an open-source SSH client used to connect to a remote server. This article describes how...

20 Basic Linux Commands and their Uses.

Following are the top 20 basic Linux Commands with Live Examples that would definitely help you...

How to Block/Unblock IPs from SSH?

You can easily block or unblock IPs  from SSH. #1. Block An IP Address from SSH First of all,...

How to install CpCleaner in cPanel through SSH?

CpCleaner is a cPanel plugin created to give cPanel users the option to clean junk files that...