Is there any way to store a command in bash history permanently? The actual scenario goes like this:-
I have a project in C and in order to configure my project, I have to run a very long command which is very difficult to remember. Once configured and build, I don't need that command for almost a month or so. Due to automatically deletion of old commands from the bash history, next time when I need that command, its not there in the history.
Note: Don't post solutions like store the command in a script file and execute script whenever required.
http://unix.stackexchange.com/questions/17574/is-there-a-maximum-size-to-the-bash-history-file
– Kris srini Feb 22 '12 at 06:53.bashrc
. If neither of these, then perhaps write it in a file, and copy-paste from there every time. – Barun Feb 22 '12 at 08:15