1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2024-10-30 18:17:57 +01:00
tldr/pages/linux/journalctl.md
2019-08-17 10:03:03 +05:30

636 B

journalctl

Query the systemd journal.

  • Show all messages from this boot:

journalctl -b

  • Show all messages from last boot:

journalctl -b -1

  • Follow new messages (like tail -f for traditional syslog):

journalctl -f

  • Show all messages by a specific unit:

journalctl -u {{unit}}

  • Filter messages within a time range (either timestamp or placeholders like "yesterday"):

journalctl --since {{now|today|yesterday|tomorrow}} --until {{YYYY-MM-DD HH:MM:SS}}

  • Show all messages by a specific process:

journalctl _PID={{pid}}

  • Show all messages by a specific executable:

journalctl {{path/to/executable}}