Ch4
If a systemd system is configured to use multi-user.target as the default boot target, which file has a symbolic link (symlink) to the multi-user.target file?
/etc/systemd/system/default.target
what is the correct order for the boot phases of a Linux computer?
1. BIOS 2. Boot Loader 3. OS Kernel 4. System or Init
Which system component verifies the hardware and passes control of the computer to the boot loader?
BIOS
You have a systemd Linux system that is configured to boot into the graphical.target by default. The system seems to be running much slower than normal. You need to reboot the system, but you want it to boot into a single-user target unit with no network access so you can perform troubleshooting tasks and get the system running normally again. What should you do before you reboot?
Set the default boot target to rescue.target.
You have GRUB2 installed on your Linux workstation. You need to make changes to the boot menu. Which files and scripts can you edit to modify the menu entries and behavior of the boot menu? (Select TWO.)
/etc/grub.d/40_custom /etc/default/grub
You are experiencing a problem with a SysV init network server. You want to bring the system down and try reseating the cards within it before restarting it. Which command completely shuts down the system in an orderly manner?
init 0
What is the core process for a systemd-based Linux system?
systemd
4.5.5 Shut Down Immediately Lab In this lab, your task is to immediately shut down the system using the command line.
1. At the prompt, type shutdown -h now halt to immediately shut down the system. 2. Press Enter.
4.5.7 Shut Down and Reboot Lab In this lab, your task is to send a command to reboot the system in 5 minutes.
1. At the prompt, type shutdown -r +5. 2. Press Enter to send the default message to logged-in users, give them 5 minutes to disconnect, and reboot the system.
4.4.9 Enable System Service at Boot Lab 1. Use the systemctl command to enable anaconda.service. 2. Use the systemctl command to disable vmtoolsd.service. 3. After each command, check the service status with the systemctl is-enabled command.
1. At the prompt, type systemctl enable anaconda.service and press Enter to enable anaconda.service. 2. Type systemctl disable vmtoolsd.service and press Enter to disable vmtoolsd.service. 3. Type systemctl is-enabled service_name and press Enter to check the service status.
4.3.3 Change the Current Target 1. Use the systemctl command to make rescue.target the current target. 2. After changing to rescue.target, log back in as root using 1worm4b8 as the password.
1. At the prompt, type systemctl isolate rescue.target and press Enter to change the runlevel to rescue.target. 2. Enter the password 1worm4b8 and press Enter to log in to the root account after changing the current target.
4.4.8 Manage System Services Lab 1. Use the systemctl command to start bluetooth.service. 2. Use the systemctl command to stop bluetooth.service. 3. Use the systemctl command to restart bluetooth.service.
1. At the prompt, type systemctl start bluetooth.service and press Enter to start bluetooth.service. 2. Type systemctl stop bluetooth.service and press Enter to stop bluetooth.service. 3. Type systemctl restart bluetooth.service and press Enter to restart bluetooth.service
4.2.7 Set the GRUB Timeout Lab 1. Change the GRUB_TIMEOUT parameter from 5 seconds to 10 seconds. 2. Reboot the operating system to verify the changes made to the wait time from the GRUB menu. 3. Log in with the username root and the password 1worm4b8.
1. At the prompt, type vi /etc/default/grub and press Enter to open the GRUB2 configuration file for editing. 2. Press i to change to vi insert mode. 3. Change the first line of the file to GRUB_TIMEOUT=10. 4. Press the Esc key to leave insert mode. 5. Type :wq and press Enter to save the changes. 6. Type grub2-mkconfig -o /boot/grub2/grub.cfg and press Enter to write the boot loader changes to the grub.cfg file. 7. Type reboot and press Enter to see the changes made to the wait time from the GRUB menu. 8. Type root for the user. 9. Type 1worm4b8 as the root password and press Enter.
4.2.8 Configure Dual Boot Lab 1. Change the default menu option for the GRUB2 boot loader to Windows 10. 2. Use the grub2-mkconfig command to make the 30_os-prober script find the Windows 10 operating system on the external hard drive and add it as an entry in the boot menu. 3. Reboot the machine and select the Windows 10 option from the boot menu. Only the Windows 10 splash screen will display.
1. At the prompt, type vi /etc/default/grub and press Enter to open the GRUB2 configuration file. 2. Press i to change to vi insert mode. 3. Change the third line of the file to GRUB_DEFAULT=Windows 10. 4. Press the Esc key to leave insert mode. 5. Type :wq and press Enter to save the changes. 6. Type grub2-mkconfig -o /boot/grub2/grub.cfg and press Enter to write the boot loader changes to the grub.cfg file. 7. Type reboot and press Enter to see the changes made to the GRUB menu. 8. Select Windows 10 from the boot menu.
You are working on a Linux distribution that uses systemd. Which file in the /usr/lib/systemd/system/ directory is text-based and used to start the services that support multiple users and support networking?
multi-user.target