Linux Bash快捷键

Ctrl + A Go to the beginning of the line you are currently typing on
Ctrl + E Go to the end of the line you are currently typing on
Ctrl + L Clears the Screen, similar to the clear command
Ctrl + U Clears the line before the cursor position. If you are at the end of the line, clears the entire line.
Ctrl + H Same as backspace
Ctrl + R Lets you search through previously used commands
Ctrl + C Kill whatever you are running
Ctrl + D Exit the current shell
Ctrl + Z Puts whatever you are running into a suspended background process. fg restores it.
Ctrl + W Delete the word before the cursor
Ctrl + K Clear the line after the cursor
Ctrl + T Swap the last two characters before the cursor
Esc + T Swap the last two words before the cursor
Alt + F Move cursor forward one word on the current line
Alt + B Move cursor backward one word on the current line

Ctrl + L:清除屏幕并将当前行移到页面顶部。
Ctrl + C:中止当前正在执行的命令。
Shift + PageUp:向上滚动。
Shift + PageDown:向下滚动。
Ctrl + U:从光标位置删除到行首。
Ctrl + K:从光标位置删除到行尾。
Ctrl + D:关闭 Shell 会话。
↑,↓:浏览已执行命令的历史记录。


版权声明:本文为Lee_01原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。