Bash

key

  • ctrl-a: go to begin of line
  • ctrl-w: 删除前一个单词
  • ctrl-u: 删至行首
  • Option + Left Arrow – to move the cursor backward by a word.
  • Option + Right arrow – to move the cursor forward by a word.