Get comfortable with the Linux terminal: discover who you are, where you are, and what system you're on. These orientation commands are the foundation every Linux user starts with.
You are now inside an Ubuntu 22.04 container. The prompt root@<id>:/# means you are the root user at the filesystem root.
💡 The --rm flag deletes the container when you exit. Nothing you do here persists. Experiment freely.
Step 2: Who Are You?
whoami
📸 Verified Output:
root
id
📸 Verified Output:
uid=0(root) gid=0(root) groups=0(root)
💡 uid=0 means root — the superuser with no restrictions. In production systems, you never log in as root. Here it's safe for learning.
Step 3: Where Are You?
📸 Verified Output:
📸 Verified Output:
💡 pwd = Print Working Directory. You're currently at / — the filesystem root, the top of the entire Linux directory tree.
Step 4: What System Are You On?
📸 Verified Output:
📸 Verified Output:
💡 uname -a gives: kernel name, hostname, kernel version, build date, architecture. The x86_64 at the end means 64-bit Intel/AMD CPU.
Step 5: System Status
📸 Verified Output:
📸 Verified Output:
💡 The load average (1.38, 1.36, 1.37) shows CPU demand over 1, 5, and 15 minutes. A value equal to your CPU count = 100% busy. Higher = overloaded.
Step 6: What Shell Are You Using?
📸 Verified Output:
📸 Verified Output:
💡 bash (Bourne Again SHell) is the most common Linux shell. Others include zsh (macOS default), fish, and dash. The shell interprets every command you type.