30 Linux Commands I Use Every Day as a Developer
The exact commands I run on my VPS every single day.
File Operations
# Find files by name find . -name "*.js" -not -path "*/node_modules/*"
# Find files modified recently (last 7 days) find . -mtime -7 -type f
# Find large files (>100MB) find /var/log -size +100M
# Search file contents grep -r "TODO" src/ --include = "*.js" -n
# Better grep with ripgrep (rg) rg "functionName" --type js --context 2
# Quick file preview head -n 20 app.js # First 20 lines tail -f /var/log/nginx.log # Follow log live tail -n 50 error.log # Last 50 lines wc -l * .js # Line counts
Enter fullscreen mode
Exit fullscreen mode
Disk & Memory
# Disk usage overview df -h
# Directory sizes (sorted) du -sh * | sort -hr
# What's eating disk space?…