JN0-102 · Question #166
Which CLI keyboard sequence allows you to move the cursor to the beginning of the line?
The correct answer is D. Ctrl+a. In Junos OS CLI, the keyboard shortcut Ctrl+a moves the cursor to the very beginning of the current command line.
Question
Which CLI keyboard sequence allows you to move the cursor to the beginning of the line?
Options
- ACtrl+e
- BCtrl+p
- CCtrl+w
- DCtrl+a
How the community answered
(32 responses)- B6% (2)
- C3% (1)
- D91% (29)
Why each option
In Junos OS CLI, the keyboard shortcut `Ctrl+a` moves the cursor to the very beginning of the current command line.
`Ctrl+e` typically moves the cursor to the end of the line, not the beginning.
`Ctrl+p` typically recalls the previous command from the history, not moving the cursor.
`Ctrl+w` typically deletes the word before the cursor, not moving it to the beginning of the line.
`Ctrl+a` is a common keyboard shortcut in many command-line interfaces, including Junos OS, for moving the cursor to the start of the current line, allowing for quick edits at the beginning of a command.
Concept tested: Junos OS CLI keyboard shortcuts
Source: https://www.juniper.net/documentation/us/en/software/junos/junos-cli/topics/concept/cli-mode-editing-keys.html
Topics
Community Discussion
No community discussion yet for this question.