Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.

Unlimited Access

Get Unlimited Contributor Access to the all ExamTopics Exams!
Take advantage of PDF Files for 1000+ Exams along with community discussions and pass IT Certification Exams Easily.

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 (?) , you can switch to a simple comment.
Switch to a voting comment New
FISI_John
1 year ago
I would say None of these options. update grub iwould be the go-to option
upvoted 1 times
Klement1n
2 months, 3 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, 3 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, 3 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, 1 month 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 ago
so i will go with the default answer
upvoted 1 times
...
...
gueno
3 years, 1 month ago
personnaly i am not convince with the answer of question 17 i think is the B
upvoted 1 times
...
Borbz
3 years, 2 months ago
Answer is correct
upvoted 2 times
Borbz
3 years 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 ...