// CyberGrind · Orange Book · OS Infographic Series — 08 of 09
Essential bash commands for file management, system administration, networking, permissions, and scripting.
ls works; LS → "command not found". This is the most common source of confusion when switching from Windows or macOS.ls -lah --color=autocd /etc | cd .. | cd ~ | cd -cd - returns to previous directory. cd ~user goes to that user's home.cp -rv /src /dstrm -rf /path/to/dircat f | less f | head -20 | tail -fless: q=quit /=search space=next page. tail -f follows live log writes.mkdir -p parent/child/subgrep -rni "pattern" /path/find /etc -name "*.conf" -type fsed -i 's/old/new/g' file.txtawk '{print $1, $3}' file.txtsort -k2 -rn | uniq -cuniq -c counts duplicates. Classic combo: sort | uniq -c | sort -rn for frequency.wc -l file | cut -d: -f1 /etc/passwdps aux | grep nginxkill -9 PID | killall nginxsystemctl status/start/stop nginxdf -h | du -sh /var/log/*ss -tlnpssh user@host -p 22 -i ~/.ssh/key