whoami Linux Command
Displays the username of the currently logged-in user.
What does whoami do?
Displays the username of the currently logged-in user.
Syntax
whoamiPractical example
whoamiRelated User Management
lastShows the last logged-in users from the system log file.
whoShows all users currently logged into the system with login details.
groupsDisplays all groups the current user is a member of.
wDisplays who is logged in and what they are currently doing.
groupdelDeletes an existing group from the system.
idPrints user and group IDs (UID, GID) for the specified or current user.