有时,当我运行命令时rm -rf XYZ,我不希望将其记录在bash历史记录中,因为我可能会意外地再次运行相同的命令reverse-i-search.有没有好办法防止这种情况发生?
rm -rf XYZ
reverse-i-search
bash
bash ×1