Menu

1 / 2

Designing a REST API That Developers Actually Like Using

DEV Community·Alex Chen·6 months ago
#rfYA0kPv
#cli#linux#productivity#tutorial#enter
Reading 0:00
15s threshold

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?…

Continue reading — create a free account

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