Command cheat sheet
The commands we reach for most often, on one page.
Files
ls -lah list with sizes and hidden files
cp -a src dst copy, preserving attributes
mv old new move or rename
rm -i file remove, asking first
find . -name '*.md'
du -sh * size of each item here
Text
grep -rn pattern .
sed -n '10,20p' file
sort | uniq -c | sort -rn
awk '{print $1}' access.log
Processes
ps aux | less
top / htop
kill -TERM pid
nohup cmd &
System
df -h free disk space
free -m memory
uptime load average
journalctl -b logs since boot