What command would you use to change the GRUB timeout to 10 seconds?

vi /boot/grub/grub.cfg

grub2-mkconfig -o /boot/grub/grub.cfg

vi /etc/default/grub

To change the GRUB timeout to 10 seconds, the correct option involves editing the configuration file located at /etc/default/grub. This file contains various settings for the GRUB bootloader, including the timeout setting that determines how long the boot menu will be displayed before automatically booting the default operating system.

By opening this file in a text editor, you can find the line that specifies the timeout (usually labeled as `GRUB_TIMEOUT`). You would change the value of this variable to 10 seconds, such as by writing `GRUB_TIMEOUT=10`. After making this change, you'll need to generate a new configuration file using the `grub2-mkconfig` command, which would incorporate the changes into the actual GRUB bootloader configuration.

This method is the standard approach for modifying boot parameters in GRUB, ensuring that the changes are applied correctly during the next boot.

The other options would not effectively achieve this goal. Editing the grub.cfg file directly is not recommended because this file is automatically generated and changes made there would be lost on the next update. The command grub2-mkconfig is typically used to generate a new grub.cfg file but does not directly modify the timeout setting. The systemctl command is not relevant for

Get further explanation with Examzify DeepDiveBeta

systemctl set-default grub.timeout

Want more questions?

All options are one-time payments.

$12.99

30 day pass for new members

All the basics to get you started

  • Ad-free experience
  • View your previous attempt history
  • Mobile app access
  • In-depth explanations
  • 30 day premium pass access
$29.99$92.93 usd

6 month DELUXE pass (most popular)

Full access FOR 6 MONTHS! & the ultimate digital PDF study guide (BONUS)

  • $92.93 usd value for $29.99! You save $62.94!
  • Ad-free experience
  • View your previous attempt history
  • Mobile app access
  • In-depth explanations
  • 6 months of full access
  • Ultimate digital PDF study guide included
  • Priority support
$14.99 $19.99

Ultimate digital PDF study guide

For those that prefer a more traditional form of learning

  • Available for instant download
  • Available offline
  • Hundreds of practice multiple choice questions
  • Comprehensive content
  • Detailed explanations
Image Description
Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy