Ubuntu server - How to List Services?


To be able to check the services on Ubuntu Server, I collected the below commands that maybe helpful for you. 

This command will show you all the services  [+] Running/And not Running[-]
service --status-all

service --status-all | grep '\[ + \]'
service --status-all | grep '\[ - \]'

We can also see all running services on Ubuntu with this command:
systemctl list-units

This command it will list all services including the inactive units:
systemctl list-units -a
To see only the inactive units, you must use this command
systemctl list-units -a --state=inactive

Comments

Leave as a comment:

Archive