Courseiva
Linux Installation and Package ManagementhardMultiple ChoiceObjective-mapped

LPIC-1 Linux Installation and Package Management Practice Question

Network Topology
$ sudo grub-installversion-rw-rrRefer to the exhibit.grub-install (GRUB) 2.04$ ls -l /boot/grub/grub.cfg$ cat /etc/default/grubGRUB_DEFAULT=0GRUB_TIMEOUT=5GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"#GRUB_TERMINAL_OUTPUT=console

Refer to the exhibit. After modifying /etc/default/grub to enable serial console output, which command must be run to apply the changes to the GRUB configuration?

⚠ Common exam trap

It's easy for candidates to confuse commands that modify GRUB's runtime behavior (like `grub-set-default` or `grub-editenv`) with the command that regenerates the static configuration file from the template, leading them to pick a wrong option that does not actually apply changes from `/etc/default/grub`.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

update-grub

The correct command is `update-grub` (or its equivalent `grub-mkconfig -o /boot/grub/grub.cfg`). After modifying `/etc/default/grub`, you must regenerate the GRUB configuration file (`grub.cfg`) to incorporate the new serial console settings. `update-grub` is a wrapper that runs `grub-mkconfig` and writes the output to the correct location, applying the changes.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • grub-editenv

    Why it's wrong here

    This edits the GRUB environment block, not the main config.

  • grub-install

    Why it's wrong here

    This installs GRUB to MBR or GPT, not regenerate config.

  • grub-set-default

    Why it's wrong here

    This sets the default boot entry, doesn't rebuild config.

  • update-grub

    Why this is correct

    This runs grub-mkconfig to generate grub.cfg from /etc/default/grub and /etc/grub.d/.

About these practice questions

This LPIC-1 question is part of Courseiva's 527-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This LPIC-1 practice question is part of Courseiva's free LPI certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the LPIC-1 exam.