Linux Cheat Sheet
Navigation and files
pwd; ls -la; cd /path; cd ..; cd ~
mkdir -p a/b/c; touch f.txt
cp -r src dst; mv a b; rm -r dir
cat f; less f; head -n 20 f; tail -f log
find . -name "*.js"; grep -rin "text" .
Permissions and users
chmod 755 file; chmod +x script.sh
chown user:group file
sudo command; sudo -i
id; whoami; groups
sudo usermod -aG docker $USER
Processes and system
ps aux | grep node; top; htop
kill PID; kill -9 PID; pkill -f name
free -h; df -h; du -sh *
lsof -i :3000; ss -tulpn
uname -a; uptime; nproc
Packages and services
sudo apt update && sudo apt upgrade
sudo apt install pkg; sudo apt remove pkg
sudo systemctl status|start|stop|restart|enable svc
journalctl -u svc -f
crontab -e; crontab -l
Network and archives
ip a; ping host; curl -I url; wget url
ssh user@host; scp f user@host:/path
rsync -avz dir/ user@host:/path/
tar -czvf a.tar.gz dir; tar -xzvf a.tar.gz
Full Linux documentation