Skip to content

Instantly share code, notes, and snippets.

@joshuaaguilar20
Created January 12, 2021 22:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joshuaaguilar20/a5be1d79f726fa2ec1fe8e02f42bba56 to your computer and use it in GitHub Desktop.
Save joshuaaguilar20/a5be1d79f726fa2ec1fe8e02f42bba56 to your computer and use it in GitHub Desktop.
System CTL systemd systemctl

Systemctl Linux Server Status

To list all loaded services on your system (whether active; running, exited or failed, use the list-units subcommand and --type switch with a value of service.

# systemctl list-units --type=service
OR
# systemctl --type=service

List All Services Under Systemd

And to list all loaded but active services, both running and those that have exited, you can add the --state option with a value of active, as follows.

# systemctl list-units --type=service --state=active
OR
# systemctl --type=service --state=active

List All Running

But to get a quick glance of all running services (i.e all loaded and actively running services), run the following command.

# systemctl list-units --type=service --state=running 
OR
# systemctl --type=service --state=running
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment