如何在linuxterminal上searchword

我已经使用了很长时间的terminal窗口,有很多stdout打印。 在这里,我需要命令来searchlinuxterminal(stdout)历史上的一些字。 像文本文件中的查找选项一样。

要搜索已执行的命令,请运行以下命令

  history |grep 'your search word goes in here' 

那么,我使用屏幕运行的Linux终端。

在那里你可以做ctrl + a,然后是/或? 然后在stdout中搜索字符串。

  http://serverfault.com/questions/106388/screen-setup-tips Check out the link to learn about screen, will make your life simpler!! :-) 

如果你正在使用bash,你也可以用任何标准的文本编辑器打开.bash_history文件并对其进行操作。