Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Save all of your Terminal activity to a file' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Save all of your Terminal activity to a file
Authored by: amusingfool on May 15, '12 07:12:56AM

Two other important points, when using this feature. Close your shells using 'exit', not just allowing them to end. This forces a flush to the .bash_history. And you can also do
export HISTCONTROL=erasedups

This will keep duplicates from being written to the file. It does some odd things to the history substitutions (when at history entry 1024, !-2 and !1022 might not do the same thing), but does prevent 500 instances of 'cd' from taking over the history.



[ Reply to This | # ]