Readline常用快捷鍵

Readline Shortcut

GNU Readline is a software library that provides in-line editing and history capabilities for interactive programs with a command-line interface, such as Bash and Ipython

man readline or readline

移動(Moveing)


ShortcutComment中文註釋
Ctrl+AMove to the start of the current line移動到行首
Ctrl+EMove to the end of the line移動到行尾
Ctrl+F / Move forward a character前移一個字符
Ctrl+B / Move backward a character後移一個字符
Alt+FMove forward one word前移一個單詞
Alt+BMove backward one word後移一個單詞
Ctrl+LClear screen清屏

複製粘貼(Killing And Yianking)


ShortcutComment中文註釋
Ctrl+KCut text to the end of line剪切到行尾
Ctrl+UCut text to the beginning of line剪切到行首
Alt+DCut text to the end of the current word剪切到單詞尾
Ctrl+WCut the word behind point, using white space as a word boundary剪切到單詞頭
Ctrl+YYank the top of the kill ring into the buffer at point粘貼剪貼板內容
Alt+YRotate the kill-ring, and yank the new top. if the prior command is yank or yank-pop在剪切板裏面循環

更改文本(Changing Text)


ShortcutComment中文註釋
Ctrl+DDelete the character at point刪除光標處字符
Ctrl+HDelete previous character往前刪字符
Ctrl+TTranspose characters往前交換字符
Meta+TTranspose words往前交換單詞
Alt+UUppercase the current word大寫
Alt+LLowercase the current word小寫
Alt+CCapitalize the current word首字母大寫

歷史(History)


ShortcutComment中文註釋
Ctrl+RSearch backwards in history向前搜索歷史
Ctrl+SSearch forwards in history向後搜索歷史
Alt+.Insert the last argument of the previous command插入上一個命令的最後一個參數
Alt+ number + .With an argument n, insert the nth word from the previous command.插入上一個命令的第N個參數
最後修改於: Monday, August 28, 2023
欢迎关注微信公众号,留言交流;也欢迎使用我开发的微信小程序。

相關文章:

翻譯: