A practical, in-depth Linux command reference β built one command at a time, with real-world examples, edge cases, and interview-ready explanations.
This isn't a copy-paste cheat sheet. Every finished page covers what a command actually is, how it works internally, its full syntax, dozens of real examples, the edge cases that trip people up, and the kind of questions you'd get asked about it in an interview.
This handbook is continuously growing. New command pages are added regularly, and every existing page can be expanded or corrected over time β nothing here is ever "final." If a command you're looking for isn't documented yet, it's most likely already scaffolded and waiting to be written next.
β Star or watch this repo to follow new additions, and feel free to suggest or request a command via an issue.
Current progress: 12 of 52 command pages fully completed (~23%).
| Category | Progress | Status |
|---|---|---|
| π Search | 2 / 2 | β Complete |
| π€ User Management | 3 / 3 | β Complete |
| π Text Processing | 3 / 9 | π§ In progress |
| π§ Navigation | 2 / 6 | π§ In progress |
| π½ Disk | 1 / 4 | π§ In progress |
| π¦ Archives | 1 / 2 | π§ In progress |
| π Files | 0 / 6 | β³ Planned |
| π Networking | 0 / 6 | β³ Planned |
| π Permissions | 0 / 3 | β³ Planned |
| βοΈ Processes | 0 / 5 | β³ Planned |
| π οΈ System | 0 / 6 | β³ Planned |
Each command lives in its own folder under commands/<category>/<command>/ and follows the same four-file format:
| File | Purpose |
|---|---|
README.md |
The complete reference β what it is, how it works, full syntax, options, related commands |
examples.md |
Real-world, copy-pasteable usage examples |
edge-cases.md |
Gotchas, quirks, and situations that don't behave the way you'd expect |
interview-questions.md |
Common questions asked about this command, with answers |
| Command | Category | Description |
|---|---|---|
cd |
Navigation | Change the current directory |
ls |
Navigation | List directory contents |
grep |
Search | Search text using patterns |
find |
Search | Search for files in a directory hierarchy |
awk |
Text Processing | Pattern scanning and text processing language |
cat |
Text Processing | Concatenate and display file contents |
less / more |
Text Processing | Page through file contents |
mount |
Disk | Mount filesystems |
tar |
Archives | Archive and compress files |
passwd |
User | Change a user's password |
useradd |
User | Create a new user account |
who / w |
User | Show who is logged in |
These commands are already scaffolded and queued for full write-ups:
- Files:
cp,mv,rm,mkdir,touch,ln - Navigation:
pwd,man,alias - Networking:
ssh,scp,curl,wget,ping,netstat - Permissions:
chmod,chown,sudo - Processes:
ps,top,htop,kill,systemctl - Disk:
df,du,lsblk - Archives:
unzip/zip - System:
uname,uptime,env,history,cron/crontab - Text Processing:
sed,sort,wc,tee,diff,pip
linux-command-handbook/
βββ README.md
βββ LICENSE
βββ commands/
βββ navigation/
β βββ <command>/
β βββ README.md
β βββ examples.md
β βββ edge-cases.md
β βββ interview-questions.md
βββ files/
βββ text-processing/
βββ search/
βββ networking/
βββ permissions/
βββ processes/
βββ disk/
βββ archives/
βββ system/
βββ user/
Contributions are very welcome β this project grows faster with more hands on it. To add or improve a command page:
- Pick a command from the Coming soon list above (or propose a new one via an issue).
- Use one of the completed pages (e.g.
awkorfind) as a template for depth and structure. - Fill in all four files:
README.md,examples.md,edge-cases.md,interview-questions.md. - Open a pull request β even partial or draft contributions are appreciated.
Found a typo, a broken example, or an outdated explanation? Open an issue or PR β keeping existing pages accurate matters as much as adding new ones.
- Learn Linux commands through practical, real-world examples
- Understand the edge cases that documentation usually skips
- Build a reference solid enough for daily use
- Prepare for technical interviews with command-specific Q&A
This work is licensed under CC BY 4.0 β see LICENSE for details. You're free to share and adapt the content, even commercially, as long as you give appropriate credit.