Cheatsheets

Linux admin cheatsheet

Users, services, networking checks, and journalctl.

Users and packages

Command / topicWhat it does
sudo adduser aliceCreate a user (Debian/Ubuntu style)
sudo usermod -aG sudo aliceGrant sudo group membership
sudo apt update && sudo apt install pkgInstall a package
systemctl status nginxService status

Logs and network

Command / topicWhat it does
journalctl -u nginx -n 100 --no-pagerRecent unit logs
ss -tulpnListening sockets
ip aAddresses and interfaces
curl -I https://example.comHTTP response headers

← All cheatsheets · Courses