mirror of
https://github.com/cheat/cheat.git
synced 2025-09-02 10:08:30 +02:00
Merge pull request #145 from davem2/journalctl
add cheat sheet for journalctl
This commit is contained in:
21
cheatsheets/journalctl
Normal file
21
cheatsheets/journalctl
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
# Actively follow log (like tail -f)
|
||||||
|
journalctl -f
|
||||||
|
|
||||||
|
# Display all errors since last boot
|
||||||
|
journalctl -b -p err
|
||||||
|
|
||||||
|
# Filter by time period
|
||||||
|
journalctl --since=2012-10-15 --until="2011-10-16 23:59:59"
|
||||||
|
|
||||||
|
# Show list of systemd units logged in journal
|
||||||
|
journalctl -F _SYSTEMD_UNIT
|
||||||
|
|
||||||
|
# Filter by specific unit
|
||||||
|
journalctl -u dbus
|
||||||
|
|
||||||
|
# Filter by executable name
|
||||||
|
journalctl /usr/bin/dbus-daemon
|
||||||
|
|
||||||
|
# Filter by PID
|
||||||
|
journalctl _PID=123
|
||||||
|
|
Reference in New Issue
Block a user