Terminal commands every Dev should know
Published: June 15, 2025
Master the command line and you master your workflow.
π§ Why the Terminal Matters
Whether you're building websites, shipping APIs, or deploying apps β the terminal is your best friend. Itβs not just for βhackers.β The command line is where:
- Real automation happens
- Debugging gets powerful
- Speed and control live
Here are my go-to terminal commands every developer should know β beginner or pro.
β‘ cd, ls, pwd
Navigate like a ninja
cd project-folder/β change into a directoryls -laβ list all files (even hidden) with detailspwdβ show current working directory
π§Ή rm, mv, cp, mkdir, touch
Manage files quickly
rm -rf folder/β delete folder and contents β οΈmv old.js new.jsβ rename or move filescp index.html backup.htmlβ copy filesmkdir assetsβ creates directorytouch README.mdβ create an empty file
π grep, find, cat, less
Search like Sherlock
grep "function" main.jsβ find text in filesfind . -name "*.js"β find all JS filescat filenameβ print file contentsless filenameβ scrollable version ofcat
π‘ top, htop, ps, kill
Monitor and manage processes
topβ show running processeshtop- a friendlier version (install it!)ps auxβ list all processeskill -9 1234- kill process by PID
π curl, ping, whois, dig
Interact with the network
curl https://api.github.comβ make HTTP requestsping google.com- test internet connectivitywhois domain.comβ find domain informationdig github.com- DNS lookup
βοΈ chmod, chown
Permissions and ownership
chmod +x script.shβ make a file executablechown user:group file.txt- change file ownership
π¦ git
Version control life saver
git initgit statusgit commit -m "msg"git log --oneline- clean log viewgit diff- see whatβs changed
π§ͺ Bonus Tools I Love
aliasβ create custom commandhistory | grep clone- find old commandsclear- clear the terminalctrl + r- reverse search your command history π₯
π Final Thoughts
Knowing terminal commands:
- Saves time
- Makes you more resourceful
- Itβs like having superpowersβ¦ but for your keyboard.