exam questions

Exam LFCS All Questions

View all questions & answers for the LFCS exam

Exam LFCS topic 1 question 32 discussion

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

SIMULATION -
What is the name of the main configuration file for GNU GRUB? (Specify the file name only without any path.)

Show Suggested Answer Hide Answer
Suggested Answer: menu.lst -or- grub.conf -or- grub.cfg

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
Buruguduystunstugudunstuy
6 months, 1 week ago
The name of the main configuration file for GNU GRUB is grub.cfg. GNU GRUB is a bootloader that is used to boot a wide variety of operating systems, including Linux, BSD, and Windows. It reads its configuration from a file called grub.cfg, which is usually located in the /boot/grub/ directory. The grub.cfg file contains the menu entries and boot options that are presented to the user at boot time. It specifies the default boot entry, the timeout before the default entry is booted, and the options that are passed to the kernel. For example: # Set the default boot entry set default=0 # Set the timeout in seconds set timeout=5 # Define a menu entry for the Linux kernel menuentry 'Linux' { set root='(hd0,1)' linux /vmlinuz-4.19.0-13-amd64 root=/dev/sda2 ro initrd /initrd.img-4.19.0-13-amd64 } # Define a menu entry for the Windows bootloader menuentry 'Windows' { set root='(hd0,2)' chainloader +1 }
upvoted 1 times
Buruguduystunstugudunstuy
6 months, 1 week ago
This is a sample grub.cfg file that defines two menu entries: one for the Linux kernel, and one for the Windows bootloader. The default boot entry is set to the Linux kernel, and the timeout is set to 5 seconds. The options that are passed to the kernel are specified in the linux command, and the initrd image is specified in the initrd command. To make changes to the GRUB configuration, you can edit the grub.cfg file manually, or you can use the grub-mkconfig command to generate a new configuration file based on the available kernels and boot options.
upvoted 1 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