Pages

Saturday, 5 October 2019

EX300 - Basic systemctl commands

# to make sure the 'httpd' service starts when the system boots.
systemctl enable httpd

# to start the service right away
systemctl start httpd

# to check the status of a service
systemctl status httpd

# to list active services 
systemctl list-units --type service

# to list all services including inactive ones
systemctl list-units --type service --all

# to list all services installedsystemctl list-unit-files

No comments:

Post a Comment