exam questions

Exam LFCS All Questions

View all questions & answers for the LFCS exam

Exam LFCS topic 1 question 17 discussion

Actual exam question from Linux Foundation's LFCS
Question #: 17
Topic #: 1
[All LFCS Questions]

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

  • A. kill -HUP $(pidof grub)
  • B. grub-install
  • C. grub
  • D. No action is required
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Nagendhar97
4 weeks, 1 day ago
Selected Answer: D
This is because none of the other options (A, B, or C) correctly apply to the situation of updating the GRUB configuration file. In reality, the correct action is to run sudo update-grub, but since that option is not provided, the best answer among the given choices is D
upvoted 1 times
...
FISI_John
1 year, 6 months ago
I would say None of these options. update grub iwould be the go-to option
upvoted 1 times
Klement1n
8 months, 4 weeks ago
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."
upvoted 1 times
...
...
Buruguduystunstugudunstuy
1 year, 9 months ago
Selected Answer: 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.
upvoted 1 times
Buruguduystunstugudunstuy
1 year, 9 months ago
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.
upvoted 1 times
...
...
passnow
3 years, 7 months ago
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
upvoted 1 times
passnow
3 years, 6 months ago
so i will go with the default answer
upvoted 1 times
...
...
gueno
3 years, 7 months ago
personnaly i am not convince with the answer of question 17 i think is the B
upvoted 1 times
...
Borbz
3 years, 8 months ago
Answer is correct
upvoted 2 times
Borbz
3 years, 6 months ago
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.
upvoted 2 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago