<Ctrl><Alt><d> Toggle hide/show the desktop (great to hide the Solitaire game when your boss walks in).
在輸入命令時,經常會出現刪除命令行中的某一個字符,修改某一個單詞的情況。之前還一直使用方向鍵來進行控制,其實操作它們都是有訣竅的。
Cursor Movement
Key Action
CTRL-A Move cursor to the beginning of the line.
CTRL-E Move cursor to the end of the line.
CTRL-F Move cursor forward one character; same as the right arrow key.
CTRL-B Move cursor backward one character; same as the left arrow key.
CTRL-L Clear the screen and move the cursor to the top left corner. The clear command does the same thing.
Modifying Text
Cutting and Pasting (Killing and Yanking) Text
Key Action
Ctrl+_ Undo what was just typed in(undo).
CTRL-D Delete the character at the cursor location.
ALT-U Convert the characters from the cursor location to the end of the word to uppercase.
CTRL-K Kill text from the cursor location to the end of line. (刪除光標所在之後的文字)
CTRL-U Kill text from the cursor location to the beginning of the line. (刪除光標所在之前的文字)
CTRL-Y Yank text from the kill-ring and insert it at the cursor location. (從光標處插入之前複製或者是剪切的數據)
Completion
use TAB key(使用TAB鍵)可以直接進行補全
Using History
Key
Action
CTRL-P Move to the previous history entry. Same action as the up arrow.
CTRL-N Move to the next history entry. Same action as the down arrow.
CTRL-O Execute the current item in the history list and advance to the next one. This is handy if you are trying to re-execute a sequence of commands in the history list.