Skip to content
Advertisement

How to check if a service that I don’t know the name of is running on Ubuntu

I do not know the service’s name, but would like to stop the service by checking its status.

For example, if I want to check if the PostgreSQL service is running or not, but I don’t know the service’s name, then how could I check its status?

I know the command to check the status if the service name is known.

Advertisement

Answer

I don’t have an Ubuntu box, but on Red Hat Linux you can see all running services by running the following command:

service --status-all

On the list the + indicates the service is running, - indicates service is not running, ? indicates the service state cannot be determined.

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement