From the GRUB 2 menu, enter an interactive prompt for commands such as ls and set.
Do not open the selected entry editor.
Which key is generally pressed?
Pressing c in the GRUB 2 menu opens its interactive command line. e is used for entry editing.
Detailed explanation
eIncorrect. e opens the selected boot entry editor.
Incorrect. e opens the selected boot entry editor.
EnterIncorrect. Enter boots the selected menu entry.
Incorrect. Enter boots the selected menu entry.
cCorrect. c opens the GRUB command prompt.
Correct. c opens the GRUB command prompt.
F1Incorrect. F1 is not the standard command-line key here.
Incorrect. F1 is not the standard command-line key here.
Try it yourself
An example you can run in a temporary verification environment.
printf '%s
' 'GRUB menu: c opens the command line'Expected result
GRUB menu: c opens the command lineKey points
- c opens the command line
- e edits an entry
- Useful for interactive recovery
Notes
- Environment: GRUB 2メニュー操作
- Command output formatting can vary slightly by distribution or tool version.
- Run the example in a temporary directory or process when possible.
Foundation review
Read the scope first
Check whether the command acts on the current shell, a new process, an existing process, or a file.
Verify the observable result
Use the supplied command and compare the output with the expected result.