Bash HISTCONTROL, control bash history command

view full story

http://www.go2linux.org – Few tips to use with bash command history. Erase duplicates in your history file If you repeat some times the same command, like I usually do when checking memory with free -m You will end up with a lot of those command repeated through your command history, and if you type history You may see an output like this: ls -l ls -h free -m free -m free -m free -m free -m <!--break--> If you want to get rid of the reapeated commands, set the variable HISTCONTROL to erasedups. export HI (HowTos)