how to view running services in linux code example
Example 1: check service status in linux
$ sudo service httpd status
httpd is stopped
Example 2: checking service status in linux
$ sudo service httpd start
Starting httpd: [ OK ]