Linux Troubleshooting
Cheat sheet · https://pcornel.dk/topic.php?topic=2910
Answer
Linux troubleshooting is a method: define the symptom and when it started, check the basics (resources, failed units, logs, recent changes), find the first failing layer, fix it and verify.
Remember
Ask what changed (updates, config, reboot) — dnf history, /var/log/apt/history.log, last reboot. Check the cheap things first: disk full, failed units, time, DNS. Change one thing at a time and keep notes.
First checks
last reboot | head— recent rebootsjournalctl -b -p err— errors this bootsystemctl --failed— failed unitsdf -h; df -i— space and inodesss -tulpn— listening socketsdmesg -T | tail— recent kernel messages
Commands
journalctl -b -p warning --since ...df -hdf -iss -ssystemctl --failedjournalctl -b -p err -n 50df -h; df -iss -tulnpjournalctl --sincesystemctl status <unit>journalctl -u <unit> -bip aip rss -tulpn
Verify in this order
symptom → time → basics → logs → recent changes → first failing layer → fix → verify
Where it usually breaks
First mismatch in persistent intent → provider/parser/generator → kernel/userspace runtime → dependency/security context → logs/counters → consumer-visible read-back; preserve identity/native diagnostic/pre-state before mutation.
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=2910