The history command can be used to retrieve the the commands you have previously typed in a shell.

learn more… | top users | synonyms

30
votes
4answers
13k views

How to avoid duplicate entries in .bash_history

The same command is listed in my history again and again. How can I avoid this? I know it's possible via HISTCONTROL but I haven't found the right way.