Bash Trick

With bash you have the luxury of having all your past commands available with the history command. If you run the same command several times it will be entered multiple times in your history file.

To counteract this (make it only log once) add the following line to your /etc/bashrc file.

export HISTIGNORE="&"
Leave A Reply
All content licensed under the Creative Commons License