Exam LFCS All QuestionsBrowse all questions from this exam
Question 17

After modifying GNU GRUB's configuration file, which command must be run for the changes to take effect?

    Correct Answer: B

    After modifying GNU GRUB's configuration file, you must run the 'grub-install' command for the changes to take effect. This command installs the GRUB bootloader and updates the boot menu with the new configuration. The 'grub-install' command writes the updated configuration to the boot sector of the system's boot partition, ensuring that the changes are applied correctly.

Discussion
Borbz

Answer is correct

Borbz

Since Grub is not a service you don't need to take any action for changes to take effect. A soon as you change the config file the changes take immediate effect.

FISI_John

I would say None of these options. update grub iwould be the go-to option

Klement1n

https://help.ubuntu.com/community/Grub2#:~:text=The%20main%20Grub%202%20configuration,not%20normally%20be%20edited%20directly. Correct. "Changes made in the configuration files will not take effect until the update-grub command is executed."

BuruguduystunstugudunstuyOption: B

Option B. grub-install is the command that must be run after modifying GNU GRUB's configuration file for the changes to take effect. GNU GRUB (GRand Unified Bootloader) is a bootloader that is used to boot Linux and other operating systems. It reads its configuration from the /boot/grub/grub.cfg file and uses it to create a menu that allows the user to select an operating system or boot option. If you make changes to the /boot/grub/grub.cfg file, you must run the grub-install command to apply the changes and update the boot menu. The grub-install command installs the GRUB bootloader on the system and writes the configuration to the boot sector of the system's boot partition. For example: grub-install /dev/sda This installs the GRUB bootloader on the first hard drive ( /dev/sda ) and updates the boot menu with the new configuration.

Buruguduystunstugudunstuy

Option A: The kill -HUP $(pidof grub) command does not apply changes to the GRUB configuration file. It sends a hang-up signal to the process with the specified PID, which may cause the process to terminate or reload its configuration. Option C: The grub command is not used to apply changes to the GRUB configuration file. It is a command-line interface for managing the GRUB bootloader and can be used to perform various tasks such as booting into a specific operating system or editing the boot menu. Option D: No action is not the correct answer. After modifying the GRUB configuration file, the grub-install command must be run for the changes to take effect.

passnow

for me i dont think the answer is there. To make a configuration permanent u need to write grub2-mkconfig-o /boot/grub2/grub.cfg this is the right thing to do

passnow

so i will go with the default answer

guenoOption: B

personnaly i am not convince with the answer of question 17 i think is the B