By Diablo's Tech Blog
Published: November 25, 2025
If you’re ever opened a terminal on Linux and felt a tiny wave of panic, you’re not alone. The black screen with a blinking cursor looks intimidating-until you realize it’s actually the most powerful tool on your computer. Once you learn a handful of core commands, you’ll wonder how you ever lived without them.
I’ve been using Linux daily for over a decade, and these eight commands are the ones I type hundreds of times a week. They save me hours, prevent mistakes, and make me feel like a wizard. Here they are, explained in plain English, with real-life examples so you can start using them today.
1. ls – Your Eyes Inside Any Folder
Most people know ls lists files, but the real magic happens when you combine it with its options.
Must-know versions:
ls -l → detailed view (permissions, owner, size, date)
ls -lh → same as above but human-readable sizes (23M instead of 23948576)
ls -a → show hidden files (those starting with .)
ls -ltr → my personal favorite: long list, sorted by modification time (newest at the bottom)
Real life: You downloaded a bunch of files months ago and can’t remember the name.
ls -ltr ~/Downloads instantly shows you the most recent ones at the bottom. No clicking through folders in a file manager ever again.
2. cd – Move Around Like a Pro
Yes, “change directory” is basic, but most beginners don’t know the shortcuts.
Cheat sheet:
cd → takes you straight to your home folder, no matter where you are
cd - → go back to the previous directory (like a back button)
cd .. → up one level (cd ../../ for two levels, etc.)
cd ~ → same as just cd, goes home
Pro tip: Use Tab completion. Type cd Dow + Tab → becomes cd Downloads/. Saves years of typing over a lifetime.
3. pwd – “Where the Hell Am I?”
You’re deep in some folder, following a tutorial, and suddenly you’re lost.
Just type pwd (print working directory) and it tells you the full path.
Bonus: Add it to your prompt so you always know where you are. Many distros already do this.
4. grep – Search Like You Mean It
grep is the reason I rarely use Ctrl+F in text editors anymore.
Examples that will change your life:
grep "error" logfile.txt → find every line with “error”
grep -i "error" logfile.txt → case-insensitive search
grep -r "TODO" . → search every file in the current folder (and subfolders) for “TODO”
journalctl | grep bluetooth → find all Bluetooth-related system log entries
Real story: Last month my Wi-Fi kept dropping. Ran journalctl -f | grep wpa and watched the exact moment the connection failed. Fixed it in 5 minutes.
5. find – The Ultimate File Hunter
The graphical search in your file manager is cute. find is a bloodhound.
Everyday heroes:
find . -name "*.pdf" → find all PDFs in current folder and below
find /home -size +100M → find files bigger than 100 MB (great for cleaning)
find . -type f -mtime -7 → files modified in the last 7 days
find . -iname "*.jpg" -exec rm {} + → delete all .jpg files (case-insensitive). Be careful!
I once recovered a lost document with find ~ -name "report_final_final_v2.docx" in under 3 seconds.
6. rm – With Great Power Comes Great Responsibility
Yes, there’s no recycle bin. But that’s also why it’s fast.
Safe habits I live by:
Never rm -rf / (obviously)
Always use rm -i when learning (it asks for confirmation)
Use rm -rf folder/ only when you’re 100% sure
My golden rule: alias rm to rm -I in your ~/.bashrc (it prompts once if you’re deleting more than 3 files)
Alternative: Use trash-cli so deleted files go to trash instead of vanishing forever.
7. curl & wget – Download the Internet
Two commands that belong in every Linux user’s muscle memory.
curl -O https://example.com/bigfile.zip → download file, keep original name
wget -r -np -k https://example.com/docs/ → mirror an entire website for offline reading
curl ifconfig.me → instantly see your public IP address
curl wttr.in/Berlin → beautiful ASCII weather in your terminal
I use curl -fsSL https://raw.githubusercontent.com/... so often when installing tools that my fingers type it automatically.
8. ssh – Your Computer, From Anywhere
Once you start using SSH, you’ll never understand how you lived without remote access.
Daily uses:
top / htop – see what’s eating your CPU/RAM
df -h – how much disk space is left (human readable)
du -sh * – see folder sizes sorted
history | grep git – find that command you used last week
Ctrl+R – reverse search your command history (life-changing)
Final Thought: The Terminal Isn’t Scary — It’s Freedom
Every one of these commands replaces an action that would take 10–30 seconds (or minutes) with a mouse and turns it into 1–3 seconds with your keyboard. Multiply that by hundreds of times a day and you’re literally saving hours every week.
Start with one command today. Open your terminal and try ls -lh. Then try cd Documents followed by pwd. Play. Break nothing important (or use a virtual machine if you’re nervous).
Comments
Post a Comment