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

Post a Comment

Mới hơn Cũ hơn