Linux: systemd How-To

A mini systemd how-to…

Show messages from the current boot:

journalctl -b -0

Show messages from the previous boot:

journalctl -b -1

Disk usage:

journalctl --disk-usage

Details:

ls -la /var/log/journal/

Setup:

nano /etc/systemd/journald.conf

Verification:

journalctl --verify

Follow new messages:

journalctl -f

Show all messages by a specific executable:

journalctl /usr/lib/systemd/systemd

Show all messages by a specific process:

journalctl _PID=1

Show all messages by a specific unit:

journalctl -u netcfg

Show kernel ring buffer:

journalctl _TRANSPORT=kernel

More info, e.g. here

Advertisements
This entry was posted in Linux, Server and tagged , , , , , . Bookmark the permalink.