How to search word in linux terminal

20,266

Solution 1

To search through the commands you have executed run the following command

    history |grep 'your search word goes in here'

Solution 2

Well, i use screen for running the linux terminal.

There you can just do ctrl + a, followed by either / or ? and then the string to search in the stdout.

 http://serverfault.com/questions/106388/screen-setup-tips

 Check out the link to learn about screen, will make your life simpler!! :-)

Solution 3

In case you are using bash, you can also open the .bash_history file with any standard text editor and operate on it.

Share:
20,266
vinoth kumar
Author by

vinoth kumar

Vinoth Kumar, Zilogic System, Chennai, india.

Updated on September 01, 2020

Comments

  • vinoth kumar
    vinoth kumar almost 4 years

    I have used terminal window for long time, There is a lot of stdout prints. Here I need command to search some word in history of linux terminal(stdout). like find option in text document.