Let’s start the discussion about How to list all services using systemctl in following methods.
Contents
list all services using systemctl
When you run the systemctl
command without any parameters, it will display a list of all loaded systemd units, including services ( for more information on systemd
units, see the systemd manual) whether active or not.
To display a list of all loaded services on your system (whether active, running, exited, or failed), use the list-units subcommand with the --type
switch with the value service.
systemctl list-units --type=service
List running services :
systemctl list-units --type=service --state=running
List all services in simplified way :
service --status-all
I hope the strategies listed above work for you. Happy coding and come back again.
Similar Post : How to kill a process on a specific port ?