Code Yarns β€πŸ‘¨β€πŸ’»
Tech Blog ❖ Personal Blog

Querying systemd journal

πŸ“… 2020-Jun-16 ⬩ ✍️ Ashwin Nanjappa ⬩ 🏷️ journalctl, systemd ⬩ πŸ“š Archive

systemd is the modern init system used on many Linux distributions, including Ubuntu. The command to query systemd’s journal is journalctl. Querying the journal is useful to find out about previous boots and to look at logs of what apps went wrong.

$ journalctl
$ journalctl --list-boots

This can be useful to see your previous uptimes.

$ journalctl --pager-end
$ journalctl --boot=X

Tried with: Ubuntu 18.04


Β© 2022 Ashwin Nanjappa β€’ All writing under CC BY-SA license β€’ 🐘 @codeyarns@hachyderm.io β€’ πŸ“§