Systemctl: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 16: | Line 16: | ||
systemctl -q .... 2>/dev/null | systemctl -q .... 2>/dev/null | ||
</pre> | </pre> | ||
=Commands= | |||
==list-units== |
Revision as of 02:34, 5 April 2017
Internal
Overview
See
-q (quiet)
Suppress output to standard output in snapshot, is-active, is-failed, is-enabled, is-system-running, enable and disable. However, it does not suppress output to stderr, which happens when the unit in question does not exists, etc.
You may want to consider:
systemctl -q .... 2>/dev/null