CentOS8/RHEL8 check service status active/inactive or enable/disable

Check service status running not not

Syntax:
systemctl status service-name

# systemctl status sshd

# systemctl is-active sshd
active


Check service is permanently enabled or not
# systemctl is-enabled sshd
enabled
Share on Google Plus

About Penguin Technology

I am a passionate cloud and DevOps professional specializing in Linux and open-source solutions. Through this blog, I share my knowledge and experience with the community, offering tips and insights on cloud technologies and DevOps practices.
    Blogger Comment

0 comments:

Post a Comment