Linux Troubleshooting

Last modified: 2022-11-12

Linux

Check Error Logs

Message Buffer of Kernel

dmesg
dmesg | less
dmesg | grep bug

dmesg -l err

Record of Journal Logs

# Show all logs
journalctl

# Show current boot
journalctl -b

# Show kernel message from boot
journalctl -k

# Show recenct logs (x: details)
journalctl -e
journalctl -ex

# Shog logs from specified unit
journalctl -u httpd
journalctl -u sshd