← Back to Home
Linux Basics
Learn Linux fundamentals with a clean cheat sheet and a safe interactive practice terminal.
Command Cheat Sheet
Focused on beginner essentials, with a few intermediate and advanced references.
| Level | Command | What it does | Example |
|---|---|---|---|
| Beginner | pwd | Print current working directory | pwd |
| ls | List files and folders | ls | |
| cd <dir> | Change directory | cd projects | |
| cd .. | Go up one directory | cd .. | |
| mkdir <name> | Create a new folder | mkdir lab-notes | |
| touch <file> | Create an empty file | touch todo.txt | |
| cat <file> | View file contents | cat notes | |
| echo <text> | Print text output | echo Hello Linux | |
| clear | Clear terminal output | clear | |
| help | Show supported practice commands | help | |
| Intermediate | tree | Show directory structure | tree |
| whoami | Show active username | whoami | |
| uname | Show kernel/system info | uname | |
| ls /etc | List another path | ls /etc | |
| cd /home/student | Use absolute paths | cd /home/student | |
| Advanced | cat /etc/hosts | Read a system file | cat /etc/hosts |
| mkdir practice && cd practice | Command chaining idea | (concept only in real shell) | |
| man <command> | Read manual pages (real Linux) | man ls |
Interactive Practice Terminal
Linux Basics (practice mode)
Type 'help' to see commands.
student@linux-basics:/home/student$
Beginner quick-start: pwd · ls · cd <dir> · cd .. · mkdir <name>