20 Linux Commands Every Developer Must Know in 2026
Whether you're managing servers, building containers, or just working in the terminal, these 20 Linux commands will make you dramatically more productive.
File & Directory Operations
# 1. Find files by name
find / -name "*.log" -mtime -7
# 2. Search text in files (recursive)
grep -rn "error" /var/log/
# 3. Disk usage summary
du -sh /home/* | sort -rh | head -10
# 4. Create directory tree
mkdir -p project/{src,tests,docs}/{v1,v2}
# 5. Watch file changes in real-time
tail -f /var/log/syslog
Text Processing
# 6. Extract specific columns
awk '{print $1, $4}' access.log
# 7. Replace text in files
sed -i 's/old_text/new_text/g' config.yaml
# 8. Sort and count unique values
cat data.txt | sort | uniq -c | sort -rn
# 9. JSON processing with jq
curl api.example.com | jq '.users[].name'
# 10. Column-based text formatting
column -t -s ',' data.csv
System Monitoring
# 11. Real-time process monitor
htop
# 12. Disk space overview
df -h
# 13. Network connections
ss -tulpn
# 14. CPU and memory per process
ps aux --sort=-%mem | head -20
# 15. System uptime and load
uptime
Networking
# 16. Test HTTP endpoints
curl -X POST -H "Content-Type: application/json" \
-d '{"key":"value"}' https://api.example.com
# 17. DNS lookup
dig example.com +short
# 18. Port scanning
nmap -sV localhost
# 19. Download files
wget -c https://example.com/large-file.zip
# 20. SSH tunnel
ssh -L 3000:localhost:3000 user@server
Bonus: Productivity Shortcuts
- Ctrl+R: Reverse search command history
- !!: Repeat last command (sudo !! to re-run with sudo)
- Ctrl+A / Ctrl+E: Jump to start/end of line
- Alt+.: Insert last argument of previous command
- Ctrl+Z then bg: Send process to background
Bookmark this page and refer to it whenever you need a quick Linux command reference. Master these commands and the terminal becomes your most powerful tool.