Learn › Linux Foundations
User Switching
Switch between user accounts and run commands with elevated privileges. Understand root, su, and sudo.
Labs in this module
- su: Become Another User - su makes you a different account on the same machine. Switch into another user with su - <name, learn what the dash changes, run one command
- sudo: Borrow Root for One Command - See who you are with whoami and id, then borrow the root account for exactly one command with sudo. Read a root-only file, open a root shell