read the system logs

Find what went wrong: the errors since boot, a service's log, the kernel's messages.

  • system
  • services

Steps

  1. journalctl -b -p err

    every error since this boot

  2. journalctl -xe

    the latest entries, explained

  3. journalctl --since '1 hour ago'

    the last hour

  4. journalctl -u NAME

    one service's log

  5. sudo dmesg -T | tail -50

    the kernel's latest messages: disks, USB, drivers

  6. journalctl -b -1 -p err

    the errors of the boot before, after a crash

Notes

  • Without systemd's journal: /var/log/syslog or /var/log/messages.

Commands used

  • journalctl
  • dmesg

Each has a page in lore: lore journalctl opens it.