nerdexam
Juniper

JN0-102 · Question #43

When using keyboard shortcuts, which single keystroke combination allows users to erase the entire current command?

The correct answer is C. Ctrl + u. In the Junos OS command-line interface, the Ctrl + u keyboard shortcut allows users to erase the entire current command from the cursor position to the beginning of the line.

User Interface Options

Question

When using keyboard shortcuts, which single keystroke combination allows users to erase the entire current command?

Options

  • ACtrl + a
  • BCtrl + e
  • CCtrl + u
  • DCtrl + w

How the community answered

(26 responses)
  • A
    4% (1)
  • B
    8% (2)
  • C
    88% (23)

Why each option

In the Junos OS command-line interface, the Ctrl + u keyboard shortcut allows users to erase the entire current command from the cursor position to the beginning of the line.

ACtrl + a

Ctrl + a moves the cursor to the beginning of the line, it does not erase the command.

BCtrl + e

Ctrl + e moves the cursor to the end of the line, it does not erase the command.

CCtrl + uCorrect

Ctrl + u is a standard command-line shortcut used in many Unix-like environments, including Junos OS, to delete all characters from the cursor's current position to the beginning of the line.

DCtrl + w

Ctrl + w deletes the word to the left of the cursor, not the entire current command.

Concept tested: Junos CLI keyboard shortcuts - line deletion

Source: https://www.juniper.net/documentation/us/en/software/junos/junos-basics/topics/topic-map/junos-basics-cli-edit-navigation.html

Topics

#CLI shortcuts#command line editing#Ctrl+u

Community Discussion

No community discussion yet for this question.

Full JN0-102 Practice