星期五, 4月 19, 2013

SMC Switch 常用快速鍵

紀錄SMC Switch常會用到的快速鍵,有中文說明是我比較常用的,也比較實用。例如建立vlan時,打vlan 3 name test media ethernet status activw,active打成activw,這時按Ctrl+W刪掉游標所在的前一個單字,重打active,搭配TAB鍵則更快速與方便。

Keystroke
Function
中文說明
Ctrl-A
Shifts cursor to start of command line.
移動游標到最前面
Ctrl-B
Shifts cursor to the left one character.
Ctrl-C
Terminates the current task and displays the command prompt.
Ctrl-E
Shifts cursor to end of command line.
移動游標到最後面
Ctrl-F
Shifts cursor to the right one character.
Ctrl-K
Deletes all characters from the cursor to the end of the line.
刪除位於游標之後的指令
Ctrl-L
Repeats current command line on a new line.
Ctrl-N
Enters the next command line in the history buffer.
Ctrl-P
Enters the last command.
Ctrl-R
Repeats current command line on a new line.
Ctrl-U
Repeats current command line on a new line.
刪除位於游標之前的指令
Ctrl-W
Deletes the last word typed.
刪除前一個單字
Esc-B
Moves the cursor back one word.
Esc-D
Deletes from the cursor to the end of the word.
Esc-F
Moves the cursor forward one word.

沒有留言:

張貼留言