发新话题
打印

操作模式的导航热键

操作模式的导航热键

4.5 Navigating in Operational Mode
While in operational mode, you may want to display a list of available commands. You might also want to list the possible parameters for a single command. Maybe you want to repeat a part of the same command you just used, delete a character, or possibly even a word. Functions like these can be performed on the command line by using CLI-provided features, such as the question mark, tab key, and some UNIX-style keyboard sequences. These keyboard sequences can assist you in maneuvering through the CLI. Table 4-1 lists some of the different keyboard sequences and their function.

Table 4-1. CLI Navigational Keyboard Sequences Function  Keyboard Sequence  
Move cursor back one character  Ctrl-b  
Move cursor forward one character  Ctrl-f  
Move cursor to beginning of line  Ctrl-a  
Move cursor to end of line  Ctrl-e  
Delete character before the cursor  Ctrl-h, Delete, Backspace  
Delete character the cursor is on  Ctrl-d  
Delete word before cursor  Ctrl-w, Esc-Backspace, Alt-Backspace  
Insert most recently deleted text at the cursor  Ctrl-y  
Redraw the current line  Ctrl-l
Scroll backward through history  Ctrl-p  
Scroll forward through history  Ctrl-n  
Search CLI history in reverse order  Ctrl-r
Move cursor back one word  Esc-b or Alt-b  
Move cursor forward one word  Esc-f or Alt-f
Delete the word after the cursor  Esc-d, Alt-d  
Search CLI history  Esc-/  
Specify the number of times to execute a key-board sequence (number from one to nine)  Esc-number sequence, Alt-number sequence

TOP

发新话题