2020-09-13

journalctl cheatsheet

In the brave new world of systemd, more and more we find ourselves using journalctl to get at daemon log messages, as opposed to, say, grepping a file somewhere under /var/log/.

For a nice writeup that covers more than this blog post, see How to use journalctl over at linode (no relation).

journalctl -u [UNIT]

Shows only log messages written by the given systemd unit.

No comments:

Post a Comment