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.
Was this answer helpful? 0 Users Found This Useful (0 Votes)