Verified
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
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
What command would you execute to activate any manual updates made directly to /etc/hostname? -
systemctl restart systemd-hostnamed
Where are Systemd system unit files located, and what command could you execute to derive this
information? - /usr/lib/systemd/system
pkg-config systemd --variable systemdsystemunitdir
Where are Systemd user unit files located, and what command could you execute to derive this
information? - /etc/systemd/user
pkg-config systemd --variable systemduserconfdir
Where are Systemd units located that are effectively created at boot and destroyed when no longer
needed? - /run/systemd/system
What are the twelve unit types included in Systemd and their respective descriptions? - service -
Manages service daemons and their respective processes
socket - Manages IPC or network socket or a file system FIFO controlled and supervised by systemd, for
socket-based activation
device - Manages kernel device units as exposed in the sysfs/udev(7) device tree
mount - Manages file system mount points
automount - Manages file system automount points
swap - Manages swap devices or files for memory paging