命令行光标移动快捷键

来源:互联网 发布:网易是什么软件 编辑:程序博客网 时间:2024/05/21 06:19

切换键主要是Ctrl,少量的Meta(Alt)。

基本移动:

Move back one character. Ctrl + b
Move forward one character. Ctrl + f
Delete current character. Ctrl + d
Delete previous character. Backspace
Undo. Ctrl + -

快速移动:
Move to the start of line. Ctrl + a
Move to the end of line. Ctrl + e
Move forward a word. Meta + f (a word contains alphabets and digits, no symbols)
Move backward a word. Meta + b
Clear the screen. Ctrl + l

0 0
原创粉丝点击