终端运行每个命令都会记录下来,每次运行以后,运行history都能看到运行记录。
能不能不要让终端记录的操作。
if grep "unset HISTFILE" /etc/profile >/dev/null 2>&1 then find / -iname '*.bash_history' -type f -exec rm -f {} \; else echo "unset HISTFILE" >> /etc/profile find / -iname '*.bash_history' -type f -exec rm -f {} \; fi
1 回答753 阅读✓ 已解决
1 回答682 阅读✓ 已解决
3 回答620 阅读✓ 已解决
1 回答1.4k 阅读
1 回答798 阅读✓ 已解决
2 回答537 阅读✓ 已解决
1 回答995 阅读
有很多方法,我知道的比较方便的有
或者