Sometimes, when I run commands like rm -rf XYZ
, I don't want this to be recorded in Bash history, because I might accidentally run the same command again by reverse-i-search
. Is there a good way to prevent this from happening?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…