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.
I use a simple alias to enable the "tracking" of commands in one or many terminal window(s):
alias trackmi='export PROMPT_COMMAND="history -a; $PROMPT_COMMAND"'
Then I just tail -f my .bash_history file in another terminal on the workspace to get immediate feedback. I have just enabled unlimited history and updated my history format (export HISTTIMEFORMAT="[%F %T] ") in .bashrc.