移动
Ctrl-A 光标移动到最前
Ctrl-E 光标移动到最后
Ctrl-B 光标向左移动一格
Ctrl-F 光标向右移动一格
Delete
Ctrl-D Delete the char at the cursor position
Ctrl-K Clear the lines after the cursor
Ctrl-U Clear the lines before the cursor
Ctrl-W Delete the word before the cursor
Ctrl-C Delete one line
Ctrl-P 显示上一个命令
Ctrl-N 显示下一个命令
Ctrl-J 相当于回车
Ctrl+(x u) 按ctrl的同时, 再先后按x,u, 撤消更才的操作
!! 执行上一条命令
^blah 删除上一条命令中的blah
^blah^foo 将上一条命令中的blah替换成foo
^blash^foo^ 将上一条命令中的所有blah替换成foo
参考: http://roclinux.cn/?p=864
http://os.51cto.com/art/200908/143126_all.htm 这个比较详细