Master navigation, file operations, permissions, processes, networking, scripting, and productivity primitives. Focus on composability and the philosophy: small tools, combined power.
Manipulate content safely & inspect metadata.
touch a.txt create/update timestampcat file print contentsless file page through large contenthead -n 20, tail -fi insert, :wq write/quit, dd delete line.chmod 755 script.shchmod u+x filechown user:groupfind . -name "*.log" -mtime -1
grep -R "ERROR" logs/
rg pattern src/ # ripgrep (faster)
ag pattern # the_silver_searcher
xargs -0 rm < files.txt # null-safe batch remove
locate config.yaml # database index
Observe, prioritize & control execution.
ps aux snapshottop dynamic view (htop improved)pgrep nginx PID lookupkill -TERM pid gracefulkill -KILL pid forcekill -STOP / -CONT pause/resumecron recurring: crontab -eat 14:30 one-time jobnice / renice adjust priority./script.sh & # run in background
jobs # list
fg %1 # bring job 1 foreground
nohup long.sh & # survive hangup
sleep 100 & disown # detach fully
Inspect connectivity, latency & move data.
ip a interfacesss -tulpen listening socketsdig example.com DNS resolutionping host reachabilitycurl -I https://site headerstraceroute host path hopsscp file user@host:/pathrsync -av --progress src/ dest/wget URL downloadcurl -s https://api/service | jq '.items[]'
curl -X POST -H 'Content-Type: application/json' \
-d '{"name":"demo"}' https://api/service
curl -L -O https://host/file.tar.gz
curl -I https://site --http2
Simulated shell transformations (no real OS exec here).
High leverage commands grouped by intent.
tar -czf archive.tgz dir/
zip -r archive.zip dir/
gzip file # replaces with file.gz
tar -xvf file.tardu -sh * # folder sizes
ncdu # interactive usage
df -h # mounted usage
lsblk # block devicesid # user info
whoami # current user
umask # default mask
sudo !! # repeat prev as rootnc -zv host 80 # port check
watch -n1 'ss -s' # socket stats
tcpdump -ni any port 443
ssh -i key.pem user@hostuname -a # kernel info
lsb_release -a # distro
lscpu # CPU details
free -h # memoryhistory | tail -20
alias gs='git status'
watch -n5 'df -h | grep nvme'
CTRL+R # reverse searchTrack operational fluency.
Hard link points to same inode (same data). Symlink points to path; breaks if target removed. Hard links can't span filesystems or link dirs (usually).
Streams keep data in memory/pipe buffer, reduce I/O, support composability, and encourage single-purpose tools.
User rwx (7), group rx (5), others none (0): only owner executes; group reads/executes.
rsync handles delta transfers, resume, compression, and preserves permissions efficiently; scp always re-copies full files.