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 -aOther commands that are used to get the list of currently logged in users.
who -b
who -H
who -q
w command
w -s
w -u
w -h
id
id -un
users