journalctl Queries Every Sysadmin Needs
Essential journalctl commands: -u, -f, --since, -p, -k, -b, --no-pager, JSON output. The queries you need on a broken server at 2 AM.
All the articles with the tag "sysadmin".
Essential journalctl commands: -u, -f, --since, -p, -k, -b, --no-pager, JSON output. The queries you need on a broken server at 2 AM.
Fix SSH timeouts: ServerAliveInterval, ServerAliveCountMax, ClientAliveInterval. Understand NAT, firewalls, and TCP keepalive.
docker system prune is useful but risky. Learn what each cleanup command does and how to check disk usage safely.
PATH is different in cron, stdout is muted, and MAILTO breaks silently. Learn cron traps and how to debug them.
Understand the OOM killer, read dmesg logs, protect critical processes with oom_score_adj.
Master ~/.ssh/config: Host aliases, HostName, User, Port, IdentityFile, ProxyJump. Stop typing long SSH commands. One-line setup.
latest doesn't mean newest. Learn why pinning versions and digests matter for reproducible deployments.
Signals explained: SIGTERM vs SIGKILL, graceful shutdown, and when to actually use kill -9.
Understand Linux umask: what it is, how 022 and 027 work, calculating file permissions, and why it matters for shared directories and security.
The /proc filesystem is a window into running processes. Learn to use it without extra tools.
Compare zram (compressed RAM) and traditional swap files. Learn when each works, setup, and real-world performance trade-offs for memory-constrained systems.
Use strace to trace system calls and debug mysterious errors without reading source code.