GO KALI FREE
User Management

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 root

Related User Management

w

Displays who is logged in and what they are currently doing.

su

Switches to another user account or the root user.

who

Shows all users currently logged into the system with login details.

sudo

Executes a command with superuser (root) privileges.

whoami

Displays the username of the currently logged-in user.

passwd

Changes the password for a user account.