Menu

10 Terminal Commands I Wish I Knew 5 Years Ago
πŸ“°

10 Terminal Commands I Wish I Knew 5 Years Ago

DEV Community: beginnersΒ·Info InletΒ·8 days ago
#k25MTcF6
#devtobeginners#devto#dev#enter#exit
Long article (1141 words) β€” no AI summary yet.
Reading 0:00
15s threshold

For about five years I used the terminal like a very expensive notepad.

I typed every command out by hand. I pressed the up arrow 30 times to find something I ran yesterday. I Googled "how to kill process on port 3000" so many times that Google probably autocompletes it for me by now.

None of the commands below are secret. Most of them have existed for decades. But nobody sat me down and showed me, so I learned them one embarrassing moment at a time.

The rule for this list: each one has to kill something I used to retype, re-scroll or re-Google every week. If it's just "cool", it didn't make the cut.

Works in bash and zsh on macOS and Linux unless I say otherwise.

1. Ctrl + R : search your command history

Stop hammering the up arrow.

Press Ctrl + R and start typing any part of a command you ran before:

( reverse-i-search ) `dock': docker compose up -d --build

Enter fullscreen mode

Exit fullscreen mode

Press Ctrl + R again to cycle through older matches.…

Continue reading β€” create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.