journalctl¶
A really neat CLI for linux system logging as explained by howtogeek and linuxhandbook.
journalctljournalctl -kkernel onlyjournalctl -u sshssh onlyjournalctl -p 3error onlyjournalctl --no-pagejournalctl -n 20journalctl -fjournalctl -o short-fulljournalctl -o verbosejournalctl -o jsonjournalctl -o json-prettyjournalctl --list-bootsjournalctl -b -2-2nd boot session onlyjournalctl -p 4..6 -b0journalctl -S "2020-12-31 07:00:00"from (accepts various formats like today, yersterday, -1d, …)journalctl -S "2020-12-31 07:00:00" -U 2021-01-15from tojournalctl --disk-usage
Priorities¶
| Priority | Code | |:——–:|:——-:| | 0 | emerg | | 1 | alert | | 2 | crit | | 3 | err | | 4 | warning | | 5 | notice | | 6 | info | | 7 | debug |