nerdexam
Linux_Foundation

LFCS · Question #737

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

The correct answer is D. No action is required. After modifying GNU GRUB's configuration file (e.g., /boot/grub/grub.cfg), no immediate command is required because GRUB reads this file directly during the boot process.

Submitted by helene.fr· Apr 18, 2026Operation of Running Systems

Question

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

Options

  • Akill -HUP $(pidof grub)
  • Bgrub-install
  • Cgrub
  • DNo action is required

How the community answered

(44 responses)
  • A
    7% (3)
  • B
    2% (1)
  • C
    2% (1)
  • D
    89% (39)

Why each option

After modifying GNU GRUB's configuration file (e.g., `/boot/grub/grub.cfg`), no immediate command is required because GRUB reads this file directly during the boot process.

Akill -HUP $(pidof grub)

`kill -HUP $(pidof grub)` is irrelevant because GRUB is a bootloader that executes before the operating system and is not a running process to be signaled within the OS.

Bgrub-install

`grub-install` is used to install GRUB to the Master Boot Record (MBR) or UEFI partition, not to apply configuration changes.

Cgrub

The command `grub` by itself typically enters a GRUB shell for interactive configuration, but does not apply changes from a configuration file to the bootloader without further actions.

DNo action is requiredCorrect

When the GRUB configuration file, typically `/boot/grub/grub.cfg` (generated from `/etc/default/grub` and scripts in `/etc/grub.d/`), is directly modified, GRUB reads this file each time the system boots. Therefore, no additional command is needed for the changes to take effect on the next reboot.

Concept tested: GRUB configuration update mechanism

Source: https://www.gnu.org/software/grub/manual/grub/html_node/Configuration.html

Topics

#GRUB#Bootloader#System boot#Configuration management

Community Discussion

No community discussion yet for this question.

Full LFCS Practice