who Linux Command
Shows all users currently logged into the system with login details.
What does who do?
Shows all users currently logged into the system with login details.
Syntax
who [options]Practical example
who -aRelated User Management
whoamiDisplays the username of the currently logged-in user.
wDisplays who is logged in and what they are currently doing.
lastShows the last logged-in users from the system log file.
idPrints user and group IDs (UID, GID) for the specified or current user.
groupsDisplays all groups the current user is a member of.
suSwitches to another user account or the root user.