Skip to content

Instantly share code, notes, and snippets.

@vansoest
Last active July 23, 2019 12:10
Show Gist options
  • Select an option

  • Save vansoest/9a12fb90e9fe23d381ed to your computer and use it in GitHub Desktop.

Select an option

Save vansoest/9a12fb90e9fe23d381ed to your computer and use it in GitHub Desktop.
Useful journalctl helper-function for systemd.
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