Answers
What command would you execute to view the default systemd target / runlevel?
systemctl get-default
What command would you execute to set the default systemd target to the functional equivalent
of runlevel 3? systemctl set-default multi-user
What command would you execute to set the default systemd target to the functional equivalent
of runlevel 5? systemctl set-default graphical.target
When using the "systemctl" utility, what is the default systemd type if omitted? service
What would you append to the end of the default Linux kernel entry in order to boot to the
"emergency" Systemd target, and what key combination would you press to proceed with
booting? systemd.unit=emergency.target
What would you append to the end of the default Linux kernel entry in order to boot to the
"Rescue" Systemd target, which is equivalent to runlevel 1 (single user mode)?
systemd.unit=rescue.target
, RHCSA - Systemd Questions With Complete
Answers
What command would you execute to see whether or not the sshd service is enabled?
systemctl is-enabled sshd
What command would you execute to disable the Apache service? systemctl disable httpd
What command would you execute to display all services present on the system and whether or
not they are enabled? systemctl list-unit-files --type=service
What command would you execute to display the hostname and other pertinent information via
systemd? hostnamectl
What command would you execute to set the hostname to i.can.has.cheezburger via systemd?
hostnamectl set-hostname i.can.has.cheezburger
What file is the system's hostname stored in? /etc/hostname