首页 > 系统服务 > 详细

linux控制台命令

时间:2021-09-08 19:18:12      阅读:20      评论:0      收藏:0      [点我收藏+]

1.搜索历史命令 Ctrl + R 

 

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/   

 

linux控制台命令

原文:https://www.cnblogs.com/Big-hu/p/15241419.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!