Cheatography
https://cheatography.com
The essential Linux commands for files, permissions, networking, processes, and package management — with syntax and the flags you'll actually use. Handy for CompTIA Linux+ prep, sysadmin work, and daily terminal life. More free study resources at bytebarhq.com.
Navigation & Files
|
Print working directory |
|
List all files incl. hidden, with details |
|
Jump back to previous directory |
|
Copy recursively |
|
Move / rename |
|
Delete recursively, no prompt (⚠️ careful) |
|
Create nested directories |
|
Create empty file / update timestamp |
|
Search by name |
grep -r "error" /var/log
|
Search inside files, recursive |
|
View files ( tail -f
follows live) |
The 40+ commands CompTIA Linux+, Security+, and every sysadmin interview expect.
Permissions
|
Show permissions ( -rwxr-xr--
) |
|
rwx / r-x / r-x — standard for scripts |
|
rw- / r-- / r-- — standard for files |
|
Change owner |
|
Re-run last command as root |
Numeric recap: 4 = read, 2 = write, 1 = execute → 7 = rwx, 6 = rw-, 5 = r-x, 4 = r--
Networking
|
Show interfaces + IPs (modern ifconfig
) |
|
Show routing table |
|
Test connectivity |
|
Listening ports + processes (modern netstat
) |
|
Fetch headers |
|
DNS lookup |
|
Path packets take |
|
Secure remote shell |
scp file user@host:/path
|
Secure copy |
Modern replacements: ip
for ifconfig
, ss
for netstat
.
System & Processes
|
Find processes |
|
Live process monitor |
|
Force-kill a process |
|
Service status |
|
Restart a service |
|
Follow service logs |
|
Disk space (human-readable) |
|
Directory sizes |
|
Memory usage |
|
Load + uptime |
|
Kernel / system info |
-h
means human-readable — use it for df, du, free.
Text Power Tools
|
Case-insensitive search |
|
Count unique lines |
|
Print column 1 |
|
Find and replace |
|
Count lines |
|
Search command history |
Chain them with pipes — that's where the power is.
More from ByteBar
📘 Exam-ready? Practice like it's test day — the ByteBar Practice Exam Simulator: 1,000 questions per exam, $9.99 one-time for all 19 exams at bytebarhq.com
🎥 Free Linux+ walkthroughs on YouTube: youtube.com/@bytebarexamprep |
Added More from ByteBar footer block with study guide CTA link.
|
Created By
Metadata
Comments
No comments yet. Add yours below!
Add a Comment
Related Cheat Sheets
More Cheat Sheets by bytebar