ShortCuts

  • Ctrl + A: 跳到行首
  • Ctrl + E: 跳到行尾
  • Ctrl + W: 清除到上一个单词
# 回到上次所在的目录
cd -

# 输入上一个命令
!!
clear/Ctrl+L clear the screen
history Display the contents of the history list
Ctrl+A Move cursor to the beginning of the line
Ctrl+E Move cursor to the end of the line
Alt+F Move cursor forward one word
Alt+B Move cursor backward one word
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
<tab> <tab> Display list of possible completions
Alt+* Insert all possible completions

Signals

  • Ctrl-C: 发送 SIGINT,停止进程,可以被进程捕获
  • Ctrl-Z: 发送 SIGTSTP,暂停进程
  • Ctrl-\: 发送 SIGQUIT