What command would you execute to list socket units ordered by the listening address, and
also show the type of socket that it is? Correct Ans-systemctl list-sockets --show-types
What command would you execute to display all units that failed at the last system boot?
Correct Ans-systemctl --failed
What command would you execute to check the current operational status of the sshd service
and its location in the cgroup subtree? Correct Ans-systemctl status sshd
What command would you execute to prevent the crond service from starting at system boot?
Correct Ans-systemctl disable crond
What command would you execute to see if the rsyslog service is running? Correct Ans-
systemctl is-active rsyslog
What command would you execute to start the cups service Correct Ans-systemctl start cups
What command would you execute to display details for the libvirtd service? Correct Ans-
systemctl show libvirtd
, What command would you execute to transition into the multi-user target, equivalent to
switching to runlevel 3? Correct Ans-systemctl isolate multi-user.target
What command would you execute to reboot the system? Correct Ans-systemctl reboot
What command would you execute to power off the system? Correct Ans-systemctl
poweroff
What command would you execute to display the total amount of time that the last boot
process had taken? Correct Ans-systemd-analyze
What command would you execute to display the amount of time it had taken to start each
service during the last system boot? Correct Ans-systemd-analyze blame
What command would you execute to display the cgroup hierarchy of Systemd processes?
Correct Ans-systemd-cgls
What command would you execute to display resource consumption by cgroup, which is
constantly updated? Correct Ans-systemd-cgtop
What command would you execute to set the CPUShares property for the rsyslog service to
2048?? Correct Ans-systemctl set-propery rsyslog CPUShares=2048