Linux
Common commands for the terminal.
Files
ls -lah- List with sizes & hidden
cp -r src dst- Copy recursively
mv a b- Move / rename
rm -rf dir- Delete recursively
find . -name "*.log"- Find files
Text
grep -rin "todo" .- Recursive search
cat f | less- Page through output
sed -i "s/a/b/g" f- In-place replace
awk "{print $1}" f- Print a column
tail -f app.log- Follow a file
System
ps aux | grep node- Find a process
kill -9 PID- Force kill
df -h- Disk usage
chmod +x script.sh- Make executable
systemctl status nginx- Service status
Network
curl -fsSL url- Fetch a URL
ss -tulpn- Listening sockets
scp file host:/path- Copy over SSH
ssh user@host- Remote shell