history | grep "keyword2find"
does not gives unlimited history that i typed in the terminal onwards i installed ubuntu. I want to see all of them without a time span.
By default history command, which uses
To increase the size, open .bashrc file with this command
Use history number | grep keyword the number here refers to how many previous history should be fetched. Example:
To extend your bash history recording add the below lines to your .bashrc file.
First line tells how many history lines should be recorded.
By using the second line you can avoid duplicate history lines.
Also, to search the history easily you can use Ctrl+R which give a prompt like ! Where in you can type the keyword which you would like to search.
How this helps.