This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
geek:cli [2019/12/28 18:54] neil |
geek:cli [2019/12/28 19:15] (current) neil [Journalctl] |
||
---|---|---|---|
Line 38: | Line 38: | ||
I'm so used to using init.d I can't keep these instructions in my head, so they're written here until I remember them. | I'm so used to using init.d I can't keep these instructions in my head, so they're written here until I remember them. | ||
=== Listing all available services === | === Listing all available services === | ||
- | <code bash>systemctl --list-units</code> | + | <code bash>systemctl list-unit-files --all | grep enabled</code> |
=== Getting logs for a particular service === | === Getting logs for a particular service === | ||
<code bash>journalctl -u sshd</code> | <code bash>journalctl -u sshd</code> |