Created
November 17, 2019 05:52
-
-
Save focusj/b68f4c455aed3ddf3e8a35e01e12d902 to your computer and use it in GitHub Desktop.
shortcuts for osx terminal
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Ctrl + d 删除一个字符,相当于通常的Delete键(命令行若无所有字符,则相当于exit;处理多行标准输入时也表示eof) | |
Ctrl + h 退格删除一个字符,相当于通常的Backspace键 | |
Ctrl + u 删除光标之前到行首的字符 | |
Ctrl + k 删除光标之前到行尾的字符 | |
Ctrl + c 取消当前行输入的命令,相当于Ctrl + Break | |
Ctrl + a 光标移动到行首(Ahead of line),相当于通常的Home键 | |
Ctrl + e 光标移动到行尾(End of line) | |
Ctrl + f 光标向前(Forward)移动一个字符位置 | |
Ctrl + b 光标往回(Backward)移动一个字符位置 | |
Ctrl + l 清屏,相当于执行clear命令 | |
Ctrl + p 调出命令历史中的前一条(Previous)命令,相当于通常的上箭头 | |
Ctrl + n 调出命令历史中的下一条(Next)命令,相当于通常的上箭头 | |
Ctrl + r 显示:号提示,根据用户输入查找相关历史命令(reverse-i-search)</p> <p>次常用快捷键: | |
Alt + f 光标向前(Forward)移动到下一个单词 | |
Alt + b 光标往回(Backward)移动到前一个单词 | |
Ctrl + w 删除从光标位置前到当前所处单词(Word)的开头 | |
Alt + d 删除从光标位置到当前所处单词的末尾 | |
Ctrl + y 粘贴最后一次被删除的单词 | |
Command + K 清屏 | |
Command + T 新建标签 | |
Command +W 关闭当前标签页 | |
Command + S 保存终端输出 | |
Command + D 垂直分隔当前标签页 | |
Command + Shift + D 水平分隔当前标签页 | |
Command + shift + {或} 向左/向右切换标签 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment