Skip to content

Essential Linux Commands Reference

Simple, easy-to-understand reference for Linux terminal commands. Every command page includes a TL;DR Quick Start, Step-by-Step Examples, and Cheat Sheets.


TL;DR — 10 Most Useful Commands

If you only learn 10 commands today, start with these:

Command Quick Explanation Example Usage Detailed Guide
ls See files in your folder ls -lh View Guide →
cd Move into another folder cd /var/log View Guide →
pwd Show your current folder path pwd View Guide →
cp Copy a file or folder cp -r src/ dst/ View Guide →
mv Move or rename a file mv old.txt new.txt View Guide →
rm Delete a file or folder rm -i file.txt View Guide →
cat Print file content on screen cat /etc/os-release View Guide →
grep Search text inside files grep "error" app.log View Guide →
ps See running programs ps aux View Guide →
free Check available memory (RAM) free -h View Guide →

All Commands Categorized

File, Permissions & Directory Operations

Command Simple Explanation Full Guide
ls List files and folders in a directory Full Guide →
cd Change current working directory Full Guide →
pwd Print your current location path Full Guide →
cp Make a copy of files or directories Full Guide →
mv Move files to another folder or rename them Full Guide →
rm Remove/delete files or directories Full Guide →
mkdir Create a new empty folder Full Guide →
rmdir Delete an empty folder Full Guide →
touch Create an empty file instantly Full Guide →
ln Create shortcuts (symbolic or hard links) Full Guide →
chmod Change file permissions (read, write, execute) Full Guide →
chown Change file owner and group Full Guide →
tar Archive and compress directories (.tar.gz) Full Guide →

File Viewing, Disk Storage & Editing

Command Simple Explanation Full Guide
cat View whole file content in terminal Full Guide →
less View long files page by page Full Guide →
head Show first 10 lines of a file Full Guide →
tail Show last 10 lines (great for log tracking) Full Guide →
wc Count words, lines, and characters Full Guide →
diff Compare two files side by side Full Guide →
sort Sort text lines alphabetically or numerically Full Guide →
uniq Find and remove duplicate lines Full Guide →
df Check filesystem disk space and inodes Full Guide →
du Calculate directory sizes and find large files Full Guide →

Searching & Filtering

Command Simple Explanation Full Guide
find Find files by name, size, or date Full Guide →
grep Search for specific words/patterns in text Full Guide →
awk Extract columns and process structured text Full Guide →
sed Find and replace text automatically Full Guide →
xargs Pass search results into another command Full Guide →

Process, System & Service Control

Command Simple Explanation Full Guide
ps List active programs running on your system Full Guide →
top Live task manager showing CPU and RAM usage Full Guide →
htop Colorful, interactive process task manager Full Guide →
kill Stop a running program using its Process ID (PID) Full Guide →
killall Stop all instances of a program by name Full Guide →
free Check system memory (RAM) and swap usage Full Guide →
systemctl Manage system services and background daemons Full Guide →
journalctl Query and filter systemd binary logs Full Guide →
sudo Execute commands with root privileges Full Guide →

Networking, DNS & Diagnostics

Command Simple Explanation Full Guide
ping Test connection speed to a website or server Full Guide →
curl Download files or send web requests Full Guide →
wget Direct file downloader from the web Full Guide →
ssh Connect securely to a remote Linux server Full Guide →
ip Check your IP address and network interfaces Full Guide →
ss Inspect listening TCP/UDP ports and sockets Full Guide →
dig Perform DNS record lookups and traces Full Guide →
tcpdump Capture and analyze network traffic packets Full Guide →