May 17, 2017

[HDGEM] How to list running services on Linux

To list systemd services on CentOS/RHEL 7.x+ use

The syntax is:
systemctl | more
systemctl | grep httpd
systemctl list-units --type service
systemctl list-units --type mount

To list all services:
systemctl list-unit-files

The syntax is as follows for CentOS/RHEL 6.x and older (pre systemd):

service --status-all

Posted By Blogger to HDGEM at 5/17/2017 08:19:00 AM