π§ 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.
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.
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
π§ 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
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
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
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.