How do you debug system issues on Linux?
How do you debug system issues on Linux?
cross-posted from: https://reddthat.com/post/52207927
I use Manjaro Linux with the Cinnamon desktop and sometimes run into system-level issues, but I have no idea how to properly debug them. It doesn’t feel as straightforward as debugging a normal program. What’s the best way or resource to learn system debugging on Linux?
Here’s a structured map + curated resources to help you learn how to debug system-level issues on Manjaro (Cinnamon) or any Linux. You won’t master it overnight, but these will give you direction and tools.
1. Concepts, approaches, mindset
You need to treat the system like layers (hardware, kernel, init, services, user space). When something fails, you trace upward or downward from symptom to root cause.
Key strategies:
2. Foundational references / web resources
These are guide‐level or canonical references you should read and keep bookmarked:
3. Tools & commands you must know
You’ll use these regularly. Practice them so they’re second nature.
Logging / logs
journalctl— read systemd journal. Use--list-boots,-b,-k(kernel) etc. (Manjaro Linux Forum)/var/log/(syslog, kernel logs, app logs) (cycle.io)dmesg— kernel ring buffer messagessystemctl status <service>/systemctllogsSystem inspection
top,htop,free,vmstat— memory/CPU monitoringiostat,iotop— disk I/Olspci,lsusb,lsmod,lshw— hardware & modules info (CBT Nuggets)smartctl— check hard drive healthmemtester— test RAM (in user space) (YouTube)strace,ltrace— track syscalls / library callsgdb+ core dumps — backtraces, debugging crashes (ArchWiki)systemtap(for dynamic tracing) (Wikipedia)Benchmark / stress / diagnostics suites
stress,stress-ng,sysbench(Baeldung on Kotlin)4. Manjaro / Arch‐specific challenges & tips
5. Learning path & practice
journalctland logs.gdborcoredumpctlto get backtrace.strace,ltraceon small programs.If you like, I can send you a custom curated “Debugging Linux / Manjaro” cheat sheet (PDF or text) you can use offline. Do you want me to prepare that for you?