Fork me on GitHub

linuxaddicted.de

Linux | Dev | Ops

Useful BASH Setting: Ignore Duplicate Commands

There are many settings that make BASH even more usable. As many people doesn’t seem to know this particular parameter i post it here:

1
HISTCONTROL="ignoredups"

This setting in bashrc or profile makes BASH ignore duplicate commands when searching the history. It’s pretty useful if you had entered the same command several times.