Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

268 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🐧 Linux Command Handbook

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

License Status Progress PRs

Browse commands Β· What's inside Β· Coming soon


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-world examples, the edge cases that trip people up, and the kind of questions you'd actually be asked about it in an interview.

🚧 Project status

This handbook is a living project β€” new command pages are added regularly, and any existing page can be expanded or corrected over time. Nothing here is ever "final." If a command isn't documented yet, it's most likely already scaffolded and queued to be written next.

⭐ Star or watch this repo to follow new additions, and open an issue to suggest or request a command.

Progress: 45 / 50 commands completed β€” 90%

β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–‘

Category Progress Status
πŸ“ Files 1 / 6 🚧 In progress
πŸ”Ž Search 2 / 2 βœ… Complete
πŸ‘€ User Management 3 / 3 βœ… Complete
πŸ“ Text Processing 9 / 9 βœ… Complete
🧭 Navigation 4 / 4 βœ… Complete
πŸ’½ Disk 4 / 4 βœ… Complete
πŸ“¦ Archives 2 / 2 βœ… Complete
🌐 Networking 6 / 6 βœ… Complete
πŸ” Permissions 3 / 3 βœ… Complete
βš™οΈ Processes 5 / 5 βœ… Complete
πŸ› οΈ System 6 / 6 βœ… Complete

πŸ“– What every command page covers

Each command lives in its own folder β€” commands/<category>/<command>/ β€” and follows the same four-file format:

File Purpose
README.md The complete reference β€” what it is, how it works internally, full syntax, all 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 interview questions about the command, each with a full answer

βœ… Completed guides

🧭 Navigation β€” 4 / 4
Command Description
cd Change the current directory
ls List directory contents
pwd Print the working directory
man Display manual pages
πŸ”Ž Search β€” 2 / 2
Command Description
grep Search text using patterns
find Search for files in a directory hierarchy
πŸ“ Text Processing β€” 9 / 9
Command Description
cat Concatenate and display file contents
less / more Page through file contents
sed Stream text editor
awk Pattern scanning and text-processing language
sort Sort lines of text
wc Count lines, words, and bytes in a stream
diff Compare file changes
tee Duplicate command output
pipe Connect command outputs together
πŸ’½ Disk β€” 4 / 4
Command Description
df Report filesystem disk space usage
du Estimate disk usage of files/directories
lsblk List block devices
mount Mount filesystems
πŸ“¦ Archives β€” 2 / 2
Command Description
tar Archive and compress files
zip / unzip Compress and extract files
πŸ‘€ User Management β€” 3 / 3
Command Description
useradd Create a new user account
passwd Change a user's password
who / w Show who is logged in
πŸ” Permissions β€” 3 / 3
Command Description
chmod Change file permissions
chown Change file ownership
sudo Run a command as superuser
βš™οΈ Processes β€” 5 / 5
Command Description
ps Snapshot of running processes
top Live, continuously refreshing process monitor
htop Interactive, colorized process monitor
kill Send signals to a process
systemctl Control systemd services
🌐 Networking β€” 6 / 6
Command Description
ping Test host reachability
curl Transfer data via URLs
wget Reliably download files
ssh Secure remote shell
scp Securely copy files over SSH
netstat Show network connections and listening ports
πŸ› οΈ System β€” 6 / 6
Command Description
uname Print system information
uptime Show how long the system has been running
env Display or modify the environment
history Display command history
alias Create command shortcuts
cron / crontab Automated background scheduling
πŸ“ Files β€” 1 / 6
Command Description
mkdir Create new directories

⏳ Coming soon

Already scaffolded and queued for a full write-up:

cp Β· mv Β· rm Β· touch Β· ln


πŸ—‚οΈ Repository structure

linux-command-handbook/
β”œβ”€β”€ README.md
β”œβ”€β”€ LICENSE
└── commands/
    β”œβ”€β”€ navigation/
    β”œβ”€β”€ search/
    β”œβ”€β”€ text-processing/
    β”œβ”€β”€ disk/
    β”œβ”€β”€ archives/
    β”œβ”€β”€ user/
    β”œβ”€β”€ permissions/
    β”œβ”€β”€ processes/
    β”œβ”€β”€ networking/
    β”œβ”€β”€ system/
    └── files/
        └── <command>/
            β”œβ”€β”€ README.md
            β”œβ”€β”€ examples.md
            β”œβ”€β”€ edge-cases.md
            └── interview-questions.md

🎯 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

Licensed under CC BY 4.0 β€” see LICENSE. You're free to share and adapt this 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

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors