Cheatsheets
Linux admin cheatsheet
Users, services, networking checks, and journalctl.
Users and packages
| Command / topic | What it does |
sudo adduser alice | Create a user (Debian/Ubuntu style) |
sudo usermod -aG sudo alice | Grant sudo group membership |
sudo apt update && sudo apt install pkg | Install a package |
systemctl status nginx | Service status |
Logs and network
| Command / topic | What it does |
journalctl -u nginx -n 100 --no-pager | Recent unit logs |
ss -tulpn | Listening sockets |
ip a | Addresses and interfaces |
curl -I https://example.com | HTTP response headers |
← All cheatsheets · Courses