Skip to content

Instantly share code, notes, and snippets.

@knbknb
Last active August 3, 2025 16:34
Show Gist options
  • Save knbknb/08ea23efd3f4a2bbc54b210e9aa35b44 to your computer and use it in GitHub Desktop.
Save knbknb/08ea23efd3f4a2bbc54b210e9aa35b44 to your computer and use it in GitHub Desktop.
systemd: systemctl & journalctl Command Cheatsheet
### systemctl and journalctl commands
sudo journalctl --follow --unit=docker \
--since "5 days ago" --priority=warning --priority=err --no-pager
## create an override file
sudo systemctl edit docker.service
# will create (including subdirs):
# /etc/systemd/system/docker.service.d/override.conf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment