打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
Linux 控制台神器:搜索历史命令 Ctrl + R ( ctrl + r to search the history command )

Linux 控制台神器:搜索历史命令 Ctrl + R ( ctrl + r to search the history command )

访问量: 9644

Linux下的神器 ctrl + r (reverse-i-search ) 的使用方法:   (reverse-i-search usage: ) 

(press ctl + r ) 输入任意字符,例如: "mig"  就会出现 $  rake db:migrate    ( press ctrl + r, then input the content you want to search) 

如果我想找另一个命令呢?  输入完 'mig' 多按几次 ctrl + r ,就可以继续向前搜索 “mig" 的内容了。  ( if you want to search the last but n result, just press n times 'ctrl + r'.)

如果找到了,按 -> 或者直接回车,就是执行  ( press Enter to execute the command , or 'right arrow (->)' to go to the end of the command. 

更多请看 (refer to ):www.thegeekstuff.com/tag/bash-control-r/   

本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
linux history配置
linux调出控制台命令
Linux命令台指什么?和终端有何区别?
如何隐藏你的 Linux 的命令行历史
Linux历史命令自动提示
linux查看历史命令
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服