Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Linux by (9.5k points)

How to stop the service for which I don’t know the name by checking it’s status? For example, to check if a PostgreSQL service is running or not but I don’t know the service’s name, how to check the status of it? 

1 Answer

0 votes
by (19.7k points)

To check the status of the running services on RedHat Linux, you can use the below command: 

service --status-all

In the output, + means the service is running, - means the service is not running and ? means the service state can’t be determined. 

Interested in Linux? Check out this Linux Certification by Intellipaat.  

Related questions

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

Browse Categories

...