Linux CH 9
what command used with the systemctl list-units --type=service lists all service units regardless of the activation state?
--all
what command is used to disable the sshd service at boot
systemct disable sshd.service
What command is used to explore the current state of the system.
systemctl
What command lists units that are both loaded and active
systemctl
what command is used to list all of the failed units?
systemctl --failed --type=service
What command would I use to start the sshd service at boot.
systemctl enable sshd.service
what command is used to verify the service sshd.service is active and running?
systemctl is-active ssh.service
what command is used to verify the sshd service unit is enabled to start automatically during a system boot?
systemctl is-enabled sshd.service
What command is used to verify if the sshd service failed during startup.
systemctl is-failed sshd.service
what command displays the hierarchy mapping of dependencies to start the sshd service unit.
systemctl list-dependencies sshd.service
what command lists the state of all unit files installed?
systemctl list-unit-files --type=service
what command is used to list only the service units with active activation states.
systemctl list-units --type=service
what command would I use to mask the sendmail service
systemctl mask sendmail.service
What command would i use to reload the sshd service
systemctl reload sshd.service
what command would I use to reload or restart the sshd service if I did not know if the service has the reload functionality.
systemctl reload-or-restart sshd.service
What command would i use to start the sshd service
systemctl start sshd.service
What command is used to view the status of a specific unit.
systemctl status name.type
What command would I use to stop the sshd service
systemctl stop sshd.service
What command would I use to unmask the sendmail service
systemctl unmask sendmail.service