3
2
2013
2

Readline 快捷键

readline实际上是一个行编辑库,使用readline的一些软件: bash, mysql, mutt, ftp
 
 
光标移动
Ctrl-f / Ctrl-b       前进/后退一个字符
Alt-f / Alt-b          前进/后退一个词
Ctrl-Left / Ctrl-Right     同上
Ctrl-a / Ctrl-e      移动到行首/尾

修改and删除
Ctrl-u / Ctrl-k       删除光标左边/右边所有字符
Ctrl-w / Alt-d        删除光标左边/右边一个词
Ctrl-y                   粘贴上一次删除的内容
Ctrl-t / Alt-t           交换前两个字符/单词
Ctrl-h / Ctrl-d       删除光标前/后一个字符
 
历史记录
Ctrl-p / Ctrl-n        上一条/下一条历史命令
 
其它
Ctrl-l                    clear

参考
ArchLinux Wiki - Keyboard Shortcuts
Readline快捷键 - by ani_di
 
Category: 未分类 | Tags: readline | Read Count: 1382
Avatar_small
tisyang 说:
2013年3月07日 15:52

这是 emacs 模式的快捷键,还有 vi 模式的

http://www.startos.com/zhuanti/zt02/2010/1123/11168.html

Avatar_small
Victoria Perrier 说:
2018年7月14日 22:20

Readers of line will get better help with take of this share that discusses something important with motive. Buyers of written essay works get best offers from www.rushanessay.com here that is very nice site for them.


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter

Host by is-Programmer.com | Power by Chito 1.3.3 beta | Theme: Aeros 2.0 by TheBuckmaker.com