Systemctl: List Services

Most Linux distributions use systemd as a system and service manager.

The systemctl is the main command in systemd, used to control services.

In this tutorial i will show how to list all, enabled and running systemd services using the systemctl command.

Cool Tip: Systemd service file examples! Read more →

Systemctl – List Services

Use the next commands to list the systemd services using the systemctl command.

List all services:

$ systemctl list-unit-files --type=service

List enabled services (configured to start on boot):

$ systemctl list-unit-files --type=service --state=enabled

List running services (state=active and sub=running):

$ systemctl list-units --type=service --state=running

List running services (state=active and sub=running|exit):

$ systemctl list-units --type=service --state=active

Cool Tip: Display systemd service logs using the journalctl command! Read More →

To get more details about the service, execute:

$ systemctl status <service_name>.service