mirror of
https://github.com/foo-dogsquared/wiki.git
synced 2025-01-31 04:58:21 +00:00
ae3656f006
Just the title anyways. It makes easier to find aside from the file name and also makes it clear in case I refer to them from other documents.
1.2 KiB
1.2 KiB
Command line: journalctl
The logging daemon of systemd. (Ooooh…) Not only it can view your logs, you can ask to view specific logs and delete some of them.
For more information, see journalctl.1
manual page.
Options
-b, --boot
- show the logs starting from boot time-e, --pager-end
- go to the end of the logs-f, --follow
- watch the logs--user-unit
- show logs from a user unit-u, --unit [UNIT]
- show the logs of a system unit--vacuum-time=[TIMESPAN]
- delete logs older than the specified timespan 1-x, --catalog
- prints helpful messages such as the documentation URIs
Examples
This tool is already comprehensive. Needs a comprehensive database of examples to fight against this scope.
Watch the logs from a specific unit at boot time
journalctl --user-unit borgbackup.service -fb
Delete the logs older than a month
journalctl --vacuum-time=1m
View the latest logs with helpful messages
journalctl -xe
1
View systemd.time.5
for more information.