Last active
July 23, 2019 12:10
-
-
Save vansoest/9a12fb90e9fe23d381ed to your computer and use it in GitHub Desktop.
Useful journalctl helper-function for systemd.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function journal() { | |
| if [ "$1" != "" ]; then | |
| sudo journalctl _COMM=$1 -f -n 500 | |
| else | |
| sudo journalctl -f -n 500 | |
| fi | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment