Chapter 8

25 July 2022
4.7 (114 reviews)
20 test answers

Unlock all answers in this set

Unlock answers (16)
question
Which command can be used to fine-tune the vsync and hsync of a video card for use in X Windows? a. vidtune b. synctune c. xvidtune d. vhtune
answer
c. xvidtune
Explanation: The command that can be used to fine-tune the vsync and hsync of a video card for use in X Windows is xvidtune. This command allows you to adjust the vertical and horizontal synchronization of your video card. This can be helpful if you are having issues with your video display or if you want to optimize your video performance.
question
Which of the following statement is true? a. The GRUB boot loader is stored in the /usr/grub directory. b. LILO needs to be reinstalled after it has been modified. c. The GRUB2 boot loader is often used on legacy Linux systems. d. GRUB needs to be reinstalled after it has been modified.
answer
b. LILO needs to be reinstalled after it has been modified
question
Which directory stores most UNIX SysV rc scripts? a. /etc/rc5.d b. /etc/rc.d c. /etc/init.d d. /usr/local/systemd
answer
b. /etc/rc.d
Explanation: The /etc/rc.d directory stores most UNIX SysV rc scripts. This directory is used to store system startup and shutdown scripts.
question
Which runlevel halts the system? a. 1 b. 6 c. 0 d. 5
answer
c. 0
question
Which file does the UNIX SysV init daemon reference on startup to determine the default runlevel? a. /etc/inistate b. /inittab c. /etc/init d. /etc/inittab
answer
d. /etc/inittab
Explanation: The UNIX SysV init daemon references the /etc/inittab file on startup to determine the default runlevel. The /etc/inittab file contains a list of runlevels and the processes that should be started at each runlevel.
question
Which command can be used to start X Windows, the window manager, and the default desktop environment? a. startgui b. startgdm c. startx d. gstart
answer
c. startx
Explanation: The command startx" can be used to start X Windows, the window manager, and the default desktop environment."
question
Which of the following statements is true? a. The boot loader points to the MBR/GPT b. Either the MBR/GPT or the active partition can contain the boot loader c. Both the MBR/GPT and the active partition point to the boot loader d. The boot loader points to the active partition
answer
b. Either the MBR/GPT or the active partition can contain the boot loader
question
Which of the following indicates the second partition on the third hard disk drive to GRUB? a. (hd3,2) b. (hd4,3) c. (hd2,3) d. (hd2,1)
answer
d. (hd2,1)
Explanation: The correct answer is (hd3,2). This indicates the second partition on the third hard disk drive to GRUB. The other options are not valid partitions.
question
Which two implementations of X Windows are commonly used in Linux? (Choose two answers.) a. X.org b. XFce c. Xconfigurator d. XFree86
answer
a. X.org d. XFree86
question
What is the name of the directory that contains symbolic links to UNIX SysV rc scripts for runlevel 2? a. /etc/rc2.d b. /etc/init.d/rc2.d c. /etc/runlevel/2 d. /etc/inittab/rc2/d
answer
a. /etc/rc2.d
Explanation: The /etc/rc2.d directory contains symbolic links to UNIX SysV rc scripts for runlevel 2. These scripts are used to initialize the system and start various services when the system enters runlevel 2.
question
In what directory is Stage2 of the GRUB2 boot loader stored? a. /boot b. /root c. /bin d. /
answer
a. /boot
Explanation:The /etc/rc2.d directory contains symbolic links to UNIX SysV rc scripts for runlevel 2. These scripts are used to initialize the system and start various services when the system enters runlevel 2.
question
The first daemon loaded on a Linux system is _________. a. initstate b. inittab c. init d. linux
answer
c. init
Explanation: rcc. init
question
Which command cause the system to enter Single User Mode? a. init 0 b. init 1 c. init 6 d. inistate 5
answer
b. init 1
Explanation: The command init 0" will cause the system to enter Single User Mode. In this mode, only the superuser will have access to the system. All other users will be denied access."
question
The timeout value in the GRUB configuration file is measured in? a. seconds b. 1/10 of minutes c. 1//10 of seconds d. 1/100 of seconds
answer
a. seconds
Explanation: The timeout value in the GRUB configuration file is measured in seconds. This value determines how long the GRUB menu will be displayed before the default operating system is booted.
question
You have recently modified the options within the /etc/default/grub file. What command can you use next to rebuild the GRUB2 configuration file? a. grub2-install b. grub-install c. grubby d. grub2-mkconfig
answer
d. grub2-mkconfig
Explanation: grub2-mkconfig is the command you would use to rebuild the GRUB2 configuration file after making changes to /etc/default/grub. This command will generate a new grub.cfg file based on the settings in /etc/default/grub and the files in /etc/grub.d/.
question
You wish to configure the runlevels that a particular upstart daemon is started in. What should you do? a. Run the appropriate update-rc.d command b. Modify the contents of the /etc/rc[runlevel].d directories c. Modify the daemon configuration file within the /etc/init directory d. Run the appropriate systemctl command
answer
c. Modify the daemon configuration file within the /etc/init directory
Explanation: The best way to configure the runlevels that an upstart daemon is started in is to modify the daemon configuration file within the /etc/init directory. This will ensure that the daemon is started in the correct runlevel and that any changes are applied correctly.
question
Which of the following Systemd commands can be used to stop a daemon called lala? a. service stop lala b. systemctl stop lala.service c. chkconfig stop lala d. stop lala
answer
b. systemctl stop lala.service
Explanation: The correct answer is b. systemctl stop lala.service.The other choices are not valid Systemd commands. service stop lala is not a valid Systemd command. chkconfig is not a valid Systemd command. stop lala is not a valid Systemd command.
question
Which of the following commands can be used to start a UNIX SysV daemon called lala in runlevels 1, 2, and 3? a. chkconfig --level 123 lala on b. update-rc.d lala defaults c. systemctl enable lala 123 d. service enable lala 123
answer
a. chkconfig --level 123 lala on
Explanation: The chkconfig command can be used to enable a UNIX SysV daemon called lala in runlevels 1, 2, and 3. The update-rc.d command can also be used to enable the lala daemon in runlevels 1, 2, 3. The systemctl enable command can be used to enable the lala daemon in runlevels 1, 2, 3. The service enable command can also be used to enable the lala daemon in runlevels 1, 2, 3.
question
What Systemd target corresponds to runlevel 5? a. multi-user.target b. graphical.target c. system.target d. runlevel5.target
answer
b. graphical target
Explanation: The multi-user.target is the systemd target that corresponds to runlevel 5. This target is used for system services that are not required for the graphical user interface (GUI) to function.
question
What keyword can be specified within a boot loader to force the system to boot to Single User Mode? a. init b. rescue c. single d. telinit
answer
c. single
Explanation: The single" keyword can be specified within a boot loader to force the system to boot to Single User Mode."