Diagnostics

From Pengwings
Revision as of 13:16, 18 August 2026 by Theleruby (talk | contribs)

List all system power on/off and what caused them

last -x | grep -E 'shutdown|reboot'

Show system logs

From current boot

journalctl -b

From a specific boot

journalctl -b <entry>

Boot entry can be an offset, e.g. -1 will give you 1 boot earlier

journalctl -b -1

Same command, but limited to only showing kernel logs, add -k

journalctl -k -b -1

Show logs of specific systemd service

journalctl -u containerd.service