Courseiva
System ArchitecturehardMultiple SelectObjective-mapped

LPIC-1 GRUB 2 configuration Practice Question

Which TWO files are used to configure kernel boot parameters in 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

/etc/default/grub

The correct answers are B and C. /etc/default/grub (B) is the primary configuration file for GRUB 2 where users set kernel boot parameters such as GRUB_CMDLINE_LINUX. /etc/grub.d/ (C) is a directory containing scripts that are executed by grub-mkconfig to generate the final /boot/grub/grub.cfg file; these scripts can be modified to add or change kernel boot parameters. Option E (/boot/grub/grub.cfg) is a generated file, not used for direct configuration. Options A (/sys/kernel/cmdline) and D (/proc/cmdline) display the current kernel command line but are not configuration files.

Answer analysis

Option-by-option breakdown

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

  • /sys/kernel/cmdline

    Why it's wrong here

    Incorrect. /sys/kernel/cmdline displays the current kernel boot parameters but is not used to configure them.

  • /etc/default/grub

    Why this is correct

    Correct. /etc/default/grub is the main configuration file where users define kernel boot parameters.

  • /etc/grub.d/

    Why this is correct

    Correct. /etc/grub.d/ contains scripts that are used to generate the boot menu and can include kernel parameter configurations.

  • /proc/cmdline

    Why it's wrong here

    Incorrect. /proc/cmdline shows the kernel parameters of the currently running kernel, not a configuration file.

  • /boot/grub/grub.cfg

    Why it's wrong here

    Incorrect. /boot/grub/grub.cfg is the generated boot menu file; it is not directly used to configure kernel parameters.

About these practice questions

Courseiva writes every LPIC-1 question from scratch — 527 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or 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.