Keyboard Shortcuts for Bash - yiqingxiao

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 Let’s 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
Tab Auto-complete files and folder names
发现我朋友 linuxcoffee 已经写了一篇了,所以就直接帖过来了. 见 Shell Tips - Hot key in Bash (Bash中的快捷键 - Cool!)
    Ctrl + A : 光标移到行首
    Ctrl + E : 光标移到行尾
    Ctrl + L : 清屏
    Ctrl + U : 清除光标前至行首间的所有内容
    Ctrl + H : 同 backspace 键相同
    Ctrl + R : 搜索之前打过的命令
    Ctrl + C : 杀死当前进程
    Ctrl + D : 退出当前 Shell
    Ctrl + Z : 把当前进程转到后台运行,使用’ fg ‘命令恢复
    Ctrl + W : 移除光标前的一个单词
    Ctrl + K : 清除光标后至行尾的内容
    Ctrl + T : 交换光标位置前的两个字符
    Esc + T : 交换光标位置前的两个单词
    Alt + F : 在当前行把光标向前移一个单词
    Alt + B : 在当前行把光标向后移一个单词
    Tab : 自动补完命令

你可能感兴趣的:(C++,c,C#,bash,Go)