Ctrl + A | Go to the beginning of the line you are currently typing on(定位行首) |
Ctrl + E | Go to the end of the line you are currently typing on(定位行尾) |
Ctrl + L | Clears the Screen, similar to the clear command(清屏) |
Ctrl + U | Clears the line before the cursor position. If you are at the end of the line, clears the entire line.(清楚当前光标之前的所有内容) |
Ctrl + H | Same as backspace(相当于退格键) |
Ctrl + R | Let’s you search through previously used commands(搜索之前用过的命令) |
Ctrl + C | Kill whatever you are running(终止当前进程) |
Ctrl + D | Exit the current shell(退出当前命令行) |
Ctrl + Z | Puts whatever you are running into a suspended background process. fg restores it.(将当前进程转入后台运行) |
Ctrl + W | Delete the word before the cursor(删除光标前的单词) |
Ctrl + K | Clear the line after the cursor(删除光标后的单词) |
Ctrl + T | Swap the last two characters before the cursor(交换光标前的两个字符) |
Alt + T | Swap the last two words before the cursor(交换光标前的两个单词) |
Alt + F | Move cursor forward one word on the current line(向前跳过一整个单词) |
Alt + B | Move cursor backward one word on the current line(向后跳过一整个单词) |
Tab | Auto-complete files and folder names(自动补齐文件名或者文件夹名) |
Emacs 快捷键
C-g quit C-x C-x Exit C-x C-f open / "visit" a file C-x k kill the buffer representing a file... not deleting a file C-f move forward one character C-b move back M-f move forward one word M-b move back one word C-d Delete a character M-d Delete a word C-_ Undo C-p previous line / up C-n next line / down C-a move to the beginning of the a line C-e move to the end of the line M-< begging of the buffer M-> end of the file C-v page down M-v page up C-l center the screen C-x 2 split top/bottom C-x o other window C-x 3 split left right C-x 1 remove all windows - simplify life Search C-s text <--- search C-s Text <--- case sensitive search C-space <--- start / toggle marking a region C-k kill to end of line M-w copy C-w cut C-y yank / paste M-x query-replace M-% M-$ spell check word Hello Worlds M-x flyspell-mode Hello Worlds
其他:
杀死一个进程使用 Kill -9 PID