Académique Documents
Professionnel Documents
Culture Documents
We will
also check how to check the status of a service on a systemd system.
# systemctl list-unit-files
Sample Output
# systemctl | more
Sample Output
Sample Output
You can pipe the output to grep to search a more specific service as shown
below
Output
# netstat -pnltu
Output
To get a clearer picture, view the /etc/services file using a text editor of your
choice.
vim /etc/services
Output
Systemd services status check
In newer versions of Linux, Systemd init is present. To check if a service is
running, use the syntax below
Syntax
Output
Alternatively, you can use the syntax below to check if the service is active
Output
Also, you can use the command below to check if a service is enabled
Output
# chkconfig --list
Output
We hope you found this article useful. Feel free to try out some of the systemd
commands listed here.