Juniper Keyboard Sequences to Move Around and Edit the Junos OS CLI
Table 1: CLI Keyboard Shortcuts
|Move the cursor back one character.
|Esc+b or Alt+b
|Move the cursor back one word.
|Move the cursor forward one character.
|Esc+f or Alt+f
|Move the cursor forward one word.
|Move the cursor to the beginning of the command line.
|Move the cursor to the end of the command line.
|Ctrl+h, Delete, or Backspace
|Delete the character before the cursor.
|Delete the character at the cursor.
|Delete the all characters from the cursor to the end of the command line.
|Ctrl+u or Ctrl+x
|Delete the all characters from the command line.
|Ctrl+w, Esc+Backspace, or Alt+Backspace
|Delete the word before the cursor.
|Esc+d or Alt+d
|Delete the word after the cursor.
|Insert the most recently deleted text at the cursor.
|Redraw the current line.
|Scroll backward through the list of recently executed commands.
|Scroll forward through the list of recently executed commands.
|Search the CLI history incrementally in reverse order for lines matching the search string.
|Esc+/ or Alt+/
|Search the CLI history for words for which the current word is a prefix.
|Esc+. or Alt+
|Scroll backward through the list of recently entered words in a command line.
|Esc+number sequence or Alt+number sequence
|Specify the number of times to execute a keyboard sequence.