C-a(代表Ctrl + a,下同) 转到行首 C-e 行尾 C-k 往右删除到行末 C-u 往左删除到行首 C-r 检索历史命令 Alt-d 往右边删除一个单词 Alt-Backspace 往左删除一个单词