Skip to content

Instantly share code, notes, and snippets.

@nasirhafeez
Last active August 3, 2021 09:57
Show Gist options
  • Save nasirhafeez/dd7a77ffe8d48c72bfdb3158d918525e to your computer and use it in GitHub Desktop.
Save nasirhafeez/dd7a77ffe8d48c72bfdb3158d918525e to your computer and use it in GitHub Desktop.
Journalctl Commands

Journalctl Commands

Following Logs

journalctl -f

Displaying Recent Logs

journalctl -n
journalctl -n 20    [To display 20 most recent logs... 10 are displayed by default]

Filtering by Unit

journalctl -u nginx.service
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment