DEV Community

Cover image for Terminal Commands πŸ’»βš‘
Naseem Khan
Naseem Khan

Posted on

Terminal Commands πŸ’»βš‘

I wasted 6 months using the mouse for EVERYTHING before learning this πŸ’»

Right-click to create folder. Click, click, click to navigate. Menu bar for every single action. My workflow was PAINFULLY slow.

Then a senior dev told me: "Stop using your mouse. Learn the terminal."

I thought he was crazy. That intimidating black screen with green text? No way.

But I tried it for ONE week and my productivity DOUBLED ⚑

πŸ”₯ Here's what changed my development career:

πŸ“ Navigation (Lightning Fast):

cd projects/myapp     # Jump to any folder instantly
cd ..                 # Go up one level
cd ~                  # Home in 2 characters
cd -                  # Back to previous directory
pwd                   # Where am I?
Enter fullscreen mode Exit fullscreen mode

No more clicking through 7 nested folders. Just type and go.

βš™οΈ File Operations (No More Right-Clicking):

touch index.js        # Create file instantly
mkdir components      # Create folder
mv old.js new.js      # Rename in 1 line
cp config.js backup.js # Copy file
rm temp.js            # Delete file
Enter fullscreen mode Exit fullscreen mode

What took 5 mouse clicks now takes 1 command.

πŸ” View & Search (Insanely Powerful):

ls                    # See all files
ls -la                # See EVERYTHING with details
cat package.json      # Read file instantly
grep "error" logs.txt # Find text in files
find . -name "*.js"   # Find all JS files
Enter fullscreen mode Exit fullscreen mode

Searching through files becomes instant.

⚑ Power Commands (Feel Like A Hacker):

clear                 # Clean screen
history               # See past commands
ctrl + c              # Cancel anything
!!                    # Repeat last command
sudo !!               # Repeat with admin rights
Enter fullscreen mode Exit fullscreen mode

These shortcuts alone save hours weekly.

πŸ’‘ Why Terminal > GUI:

Speed: Type faster than clicking through menus
Automation: Commands can be scripted
Power: Access to tools GUIs hide
Universal: Works on Mac, Linux, servers
Professional: Every senior dev uses terminal

🚨 One WARNING:

rm -rf folder/

This deletes PERMANENTLY. No trash bin. No undo. I've seen people delete entire projects with this command.

ALWAYS double-check before running rm -rf.

🎯 My Learning Path:

Week 1: Only navigation (cd, ls, pwd)
Week 2: Add file operations (touch, mkdir, mv)
Week 3: Add search (grep, find)
Week 4: All commands become muscle memory

After one month, I couldn't imagine going back to clicking around with a mouse.

The terminal isn't intimidating. It's a superpower you're choosing not to use.

Windows users: Install Git Bash or WSL. These commands work there too.

Start with ONE command today. Use cd to navigate. Tomorrow add ls. Build the habit slowly.

In 30 days, you'll wonder how you ever developed without the terminal.

πŸ’¬ What made YOU finally start using the terminal? Or are you still avoiding it?

Drop your terminal journey below! πŸ‘‡

Follow for developer productivity tips, coding shortcuts, and tools that will 10x your workflow πŸš€

Top comments (0)