TECHIES WORLD

For Techs.... Techniques.... Technologies....

Linux

How to get the full list of services in Centos7

In Centos7 systemd replaces Upstart as the default init system. Systemd is a system and service manager for Linux operating systems. It is designed to be backwards compatible with SysV init scripts, and provides a number of features such as parallel startup of system services at boot time, on-demand activation of daemons, or dependency-based service control logic

We can use the systemd command to list all the services in Centos7.

#systemctl list-unit-files

If we need the list of startup enabled services,

#systemctl list-unit-files | grep enabled

If we need the list of startup disabled services,

#systemctl list-unit-files | grep disabled

If we need the list of running sevices,

#systemctl | grep running

 

That's all.......

Leave a Reply