Skip to content

Parsanzm/linux-command-handbook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

84 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🐧 Linux Command Handbook

A practical, in-depth Linux command reference β€” built one command at a time, with real-world examples, edge cases, and interview-ready explanations.

License Status PRs Progress

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.


🚧 Project Status β€” This is a living project

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

πŸ“– What's inside every command page

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

βœ… Completed guides β€” browse now

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

⏳ Coming soon

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

πŸ—‚οΈ Repository structure

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/

🀝 Contributing

Contributions are very welcome β€” this project grows faster with more hands on it. To add or improve a command page:

  1. Pick a command from the Coming soon list above (or propose a new one via an issue).
  2. Use one of the completed pages (e.g. awk or find) as a template for depth and structure.
  3. Fill in all four files: README.md, examples.md, edge-cases.md, interview-questions.md.
  4. 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.


🎯 Goals

  • 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

πŸ“œ License

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.

About

A practical, in-depth Linux command reference β€” real examples, edge cases, and interview Q&A for every command. Always growing 🚧

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors