Troubleshooting
Diagnosing and resolving common Linux issues.
Topics
| Topic | Description |
|---|---|
Boot Issues |
GRUB, initramfs, systemd boot failures |
Network Issues |
Connectivity, DNS, routing problems |
Performance |
CPU, memory, I/O bottlenecks |
General Approach
-
Check logs — journalctl, dmesg, /var/log
-
Check status — systemctl status, process state
-
Check resources — CPU, memory, disk, network
-
Check configuration — recent changes, syntax errors
-
Isolate — binary search to find the cause
Essential Commands
Logs
# System journal
journalctl -xe # Recent errors
journalctl -b # Current boot
journalctl -b -1 # Previous boot
journalctl -u <service> # Specific service
journalctl -f # Follow
# Kernel messages
dmesg -T # With timestamps
dmesg -T | tail -50 # Recent
# Traditional logs
tail -f /var/log/syslog
tail -f /var/log/auth.log