The command
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.
bashcommand line
The command
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.
Best Answer
By default history command, which uses
~/.bash_history
file to store command, store only last 2000 commands. So, It doesn't give you unlimited result.To increase the size, open .bashrc file with this command
gedit ~/.bashrc
and change the line to increase valueHISTSIZE
refers to the number of commands stored.HISTFILESIZE
refers to the number of line contained in the history file.