GO KALI FREE
User Management

w Linux Command

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

What does w do?

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

Syntax

w [username]

Practical example

w

Related User Management

who

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

id

Prints user and group IDs (UID, GID) for the specified or current user.

whoami

Displays the username of the currently logged-in user.

su

Switches to another user account or the root user.

last

Shows the last logged-in users from the system log file.

sudo

Executes a command with superuser (root) privileges.