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="&"


Note: Replies will be formatted with PHP Markdown Extra syntax.

Name: Email (Not Required):
 
Logged IP: 3.94.21.209
To prevent spam please submit by clicking the kitten: