<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.