Wanting to remember some impotant cmds, I used to put them in .bashrc_history file and use search to find, like:
$ history | grep alias | grep coffee | grep code
but sometimes history may lost for some reason. Also, usually several terminals, which may rewrite the history.. So is there any tool to manage?
Put this into your
~/.bashrcand re-login (or source the ~/.bashrc)Now every command you type will be appended to
/path/to/some/fileimmediately after you type it