You're replying to a comment by AltairIV.
You're replying to a comment by AltairIV.
I am being sponsored by Syntress since 2007! They bought me an amazing dedicated server to run catonmat on. If you're looking web services in Chicago area, I highly recommend the Syntress guys!
I love to read science books. They make my day and I get ideas for awesome blog posts, such as Busy Beaver, On Functors, Recursive Regular Expressions and many others.
Take a look at my
Amazon wish list, if you're curious about what I have planned reading next, and want to surprise me. :)


I just came across this post. Thanks for the useful summary.
But I'm quite surprised that there's no mention here of the HISTCONTROL variable, which controls the saving of duplicated and space-started lines. The available options (colon-separated) are:
ignorespace
(Don't save commands that begin with spaces, apparently equal to HISTIGNORE="[ ]*")
ignoredupes
(Don't save duplicated commands, equivalent to HISTIGNORE="&")
ignoreboth
(Combines the previous two options)
erasedupes
(Erase any previous occurrences of a command before saving)
I personally like the last one as it ensures that the most recent usage of the command is saved, rather than the oldest.
Reply To This Comment