Listing services with systemctl

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • nikolaymartin
    New Member
    • Oct 2019
    • 2

    Listing services with systemctl

    I want to list services currently installed in an ubuntu box. Also want to list the status of the listed services. Thanks.
  • gits
    Recognized Expert Moderator Expert
    • May 2007
    • 5388

    #2
    if you have access to a terminal on that box you can run:

    Code:
    service --status-all
    which should give you the list and status ([+] running svc, [-] stopped svc, [?] svc without 'status' cmd)

    if you want to use systemctl - then probably:

    Code:
    systemctl list-units --all
    gives you what you want.
    Last edited by gits; Oct 18 '19, 01:23 PM.

    Comment

    Working...