TheLinuxBook
Linux made clear, simple, and practical.
Easy-to-follow command guides, step-by-step examples, and visual cheat sheets.
Beginner Friendly Step-by-Step Examples Quick Cheat Sheets Hands-on Labs
Quick Start Cheat Sheet¶
Here are the most common daily Linux tasks and the exact commands to run:
| Goal | Command | What It Does |
|---|---|---|
| List files | ls -l -h | Show files in current folder with sizes |
| Show hidden files | ls -a | List all files including hidden . files |
| Change folder | cd /path/to/folder | Move to a different directory |
| Go back home | cd ~ or cd | Jump straight back to your home folder |
| Show current folder | pwd | Print your current location path |
| Copy a file | cp file.txt backup.txt | Create a copy of a file |
| Copy a folder | cp -r folder/ backup/ | Copy an entire folder and its contents |
| Move or rename | mv old.txt new.txt | Rename a file or move it to another folder |
| Remove a file | rm file.txt | Delete a file permanently |
| Remove a folder | rm -r folder/ | Delete a folder and everything inside it |
Explore by Topic¶
Fundamentals Basic concepts, folder structure, essential commands, and how Linux works. Shell & Scripting How to write scripts to automate repetitive tasks step by step. Process Management How to check running programs, stop frozen apps, and manage background tasks. Memory Management Understand RAM, swap space, and how Linux manages memory. Networking Check network status, test connections, download files, and troubleshoot. Storage Disk space, mounting drives, formatting partitions, and file systems. Security File permissions, user access control, and keeping your system safe. Containers Learn how Docker and containers isolate applications in Linux. systemd How Linux boots up, manages background services, and logs system events. Performance Identify system slowdowns, monitor CPU usage, and speed up your machine. Troubleshooting Step-by-step guides to diagnose and fix common Linux errors. Interview Prep Practice real-world Linux interview questions with clear explanations.
Where Should I Start?¶
- Essential Commands Reference — Master
ls,cd,cp,mv,rm. - Linux Fundamentals — Understand how files and folders are organized.
- Filesystem Structure — Learn what
/etc,/var,/home, and/usrmean. - Bash Scripting Basics — Write your first script to automate tasks.
- Process Management — Learn
ps,top,kill, and job control. - Memory Management — Monitor RAM usage with
free -handvmstat. - Networking Guide — Learn
ip,ping,curl,ss, andssh. - systemd Services — Create and manage background system services.
- Kernel Architecture — Deep dive into system calls and
/proc. - Performance Tuning — Monitor CPU, I/O bottlenecks with
perfandeBPF. - Containers Under the Hood — How namespaces and cgroups build Docker containers.
- Security & Hardening — Fine-tune permissions, SELinux, and capabilities.
Simple Visual Workflow¶
graph LR
A[Read Simple Guide] --> B[Try Command in Terminal]
B --> C[Check Output & Examples]
C --> D[Master Linux Concepts]
style A fill:#7aa2f7,color:#fff
style B fill:#9ece6a,color:#1a1b26
style C fill:#bb9af7,color:#fff
style D fill:#7dcfff,color:#1a1b26