This article mainly introduces several common shortcut keys under the Linux Bash Shell.
To delete a class shortcut key:
"ctrl + k" 删除光标后面所有字符"ctrl + u" 删除光标前面所有字符"ctrl + w" 删除光标前一个单词"ctrl + y" 恢复"ctrl+k"、"ctrl+u"、"ctrl+w"等上次执行时删除的字符"ctrl + ?" 撤消前一次输入
Move class shortcut keys:
"ctrl + a" 将光标移动到命令行开头"ctrl + e" 将光标移动到命令行结尾"ctrl + →" 光标移动到后一个单词开头"ctrl + ←" 光标移动到前一个单词结尾
History commands Find class shortcut keys:
"↑" 查找上一个执行过的命令"↓" 查找下一个执行过的命令"ctrl + p" 查找上一个执行过的命令"ctrl + r" 输入单词搜索历史命令
Other shortcut keys:
"ctrl + c" 强制终止当前命令"ctrl + l" 清屏,相当于"clear"命令"TAB" 命令或者目录自动补全"ctrl + s" 锁住终端"ctrl + q" 解锁终端"alt + r" Xshell快捷键,使Xshell工具半透明
There are many shortcut keys under the Linux command line, here are a few more commonly used.
In other words, after using the shortcut key, hit the code immediately feel tall on it.
Linux Learning Notes--common shortcut keys under the command line