List, Status, Start, Stop and Restart services in Linux

The following should workin on RHEL/CentOS and Ubuntu/Debian distros.

List services

systemctl list-unit-files –type service

Get Service Status

systemctl status sshd

Leave a Reply

Your email address will not be published. Required fields are marked *