Skip to content
Knowledge Base

To list running services with systemctl, you want to filter for services (--type=service) that are currently active (--state=running).

List ALL Active Services (Running or Exited): List ALL Installed Services (Running, Stopped, or Disabled) Finding a Specific Service The Cleanup Process Stop the service Disable…

Updated 1 min readLinux Command

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

List ALL Active Services (Running or Exited):

bash
systemctl list-units --type=service

List ALL Installed Services (Running, Stopped, or Disabled)

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

Finding a Specific Service

bash
systemctl --type=service --state=running | grep -i 'nginx\|apache'

The Cleanup Process

Stop the service

bash
sudo systemctl stop your-service-name.service

Disable the service

bash
sudo systemctl disable your-service-name.service

Delete the service files

bash
sudo rm /etc/systemd/system/your-service-name.service

Reload the systemd manager

bash
sudo systemctl daemon-reload

Reset failed states

bash
sudo systemctl reset-failed
linux-command/systemctl.md