nerdexam
Juniper

JN0-102 · Question #44

When using keyboard shortcuts, which keystroke combination allows users to erase a single word to the left of the cursor?

The correct answer is D. Ctrl + w. When using keyboard shortcuts in the Junos OS command-line interface, the Ctrl + w combination allows users to erase a single word to the left of the cursor.

User Interface Options

Question

When using keyboard shortcuts, which keystroke combination allows users to erase a single word to the left of the cursor?

Options

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

How the community answered

(35 responses)
  • A
    6% (2)
  • B
    3% (1)
  • D
    91% (32)

Why each option

When using keyboard shortcuts in the Junos OS command-line interface, the Ctrl + w combination allows users to erase a single word to the left of the cursor.

ACtrl + a

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

BCtrl + e

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

CCtrl + u

Ctrl + u deletes the entire line from the cursor to the beginning, not just a single word to the left.

DCtrl + wCorrect

Ctrl + w is a common Unix-like command-line shortcut used in Junos OS to delete the word immediately preceding the cursor.

Concept tested: Junos CLI keyboard shortcuts - word 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+w

Community Discussion

No community discussion yet for this question.

Full JN0-102 Practice