終端運(yùn)行每個(gè)命令都會(huì)記錄下來,每次運(yùn)行以后,運(yùn)行history都能看到運(yùn)行記錄。
3 回答

慕田峪9158850
TA貢獻(xiàn)1794條經(jīng)驗(yàn) 獲得超7個(gè)贊
有很多方法,我知道的比較方便的有
ln -s /dev/null ~/.bash_history
或者
$ unset HISTFILE

慕姐4208626
TA貢獻(xiàn)1852條經(jīng)驗(yàn) 獲得超7個(gè)贊
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
添加回答
舉報(bào)
0/150
提交
取消