Difference between revisions of "Journalctl"
Jump to navigation
Jump to search
imported>Jeremy-busk (Created page with "Clearing journalctl logs ``` sudo journalctl --rotate sudo journalctl --vacuum-time=1s ```") |
|||
Line 1: | Line 1: | ||
+ | Only show errors (-3) | ||
+ | ``` | ||
+ | journalctl -f -p 3 -x | ||
+ | or | ||
+ | journalctl -f -p 3 -xb | ||
+ | ``` | ||
+ | where -p 3 means priority err, -x provides extra message information, and -b means since last boot | ||
+ | |||
Clearing journalctl logs | Clearing journalctl logs | ||
``` | ``` |
Latest revision as of 20:35, 4 January 2021
Only show errors (-3)
journalctl -f -p 3 -x or journalctl -f -p 3 -xb
where -p 3 means priority err, -x provides extra message information, and -b means since last boot
Clearing journalctl logs
sudo journalctl --rotate sudo journalctl --vacuum-time=1s