id Linux Command
Prints user and group IDs (UID, GID) for the specified or current user.
What does id do?
Prints user and group IDs (UID, GID) for the specified or current user.
Syntax
id [username]Practical example
id rootRelated User Management
wDisplays who is logged in and what they are currently doing.
suSwitches to another user account or the root user.
whoShows all users currently logged into the system with login details.
sudoExecutes a command with superuser (root) privileges.
whoamiDisplays the username of the currently logged-in user.
passwdChanges the password for a user account.