Clean BASH command history from duplicates, but preserve the chronological command order
$ cp -a ~/.bash_history ~/.bash_history.bak;history|sort -k2 -k 1,1nr|uniq -f2|sort -n|tr -s ' '|cut -d' ' -f3- >~/.bash_history
Diff your entire server config at ScriptRock.com