आप कुछ systemctl
विकल्पों का उपयोग कर सकते हैं :
-t, --type=
The argument should be a comma-separated list of unit types such as
service and socket.
If one of the arguments is a unit type, when listing units, limit
display to certain unit types. Otherwise, units of all types will
be shown.
As a special case, if one of the arguments is help, a list of
allowed values will be printed and the program will exit.
--state=
The argument should be a comma-separated list of unit LOAD, SUB, or
ACTIVE states. When listing units, show only those in the specified
states. Use --state=failed to show only failed units.
As a special case, if one of the arguments is help, a list of
allowed values will be printed and the program will exit.
तो शायद आप चाहते हैं:
systemctl --type=service --state=active list-units
जो उन सभी सक्रिय सेवाओं को सूचीबद्ध करता है जिनमें बाहर निकल गए हैं। यदि आप इस क्षण का उपयोग कर रहे हैं, तो आप इसका उपयोग कर सकते हैं:
systemctl --type=service --state=running list-units