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.
I've recently upgraded from 13.04 to 13.10 and realized my terminal bash history is not surviving reboots.
cat ~/.bash_history gave me a permissions denied error.
I, possibly unnecessarily or wrongly, issued a chmod 777 ~/.bash_history to see if that would help...and although I could then cat and read some contents it contained not much of anything as far as history.
If you open a lot of terminal screens at once while working on Linux, you may have noticed that the commands you type in one terminal are not available in the other, and usually once you close all terminals, and open another again, you will see that only the commands written in one of them (The first one opened before I think) are available in history.
That is not good if you need tha
Linux offers a lot of power to users, especially from the command line. Because of this, some of the commands can get long and hairy. It would be nice to have a way so that you didn’t have to type those long ones out every time. Also, wouldn’t it be great to be able to search through your command history for that one really cool one? Luckily, we have some ways to do these things.