Users & Groups

Users and Groups

Linux is a multi-user system. Every file and process is owned by a user and a group. Understanding user management is essential for system administration.
bash
# See who you are
whoami

# See your user ID and groups
id

# See all logged-in users
who

# Switch to another user
su username

# Run a command as root (admin)
sudo command

Tip:The root user (UID 0) has unlimited power. Always use sudo for individual commands instead of logging in as root.

Terminalbash
Welcome to the Linux Terminal Simulator!
Type commands below. Use 'help' to see available commands.
user@codewithmuh:~$
Try:

💬 Got questions? Ask me anything!