如何使linux系統下的root用戶不保存終端歷史記錄到.bash_history中

———————————————— 1)history -c  //是把Linux下的/root/.bash_history  全給清了,實現不保存,做爲黑客是不地道的。 再從其餘終端倒騰回去: history |awk -F" "  '{if(NR>0){$1="";print $0}}'|grep -v "multepollserver" > /root/.bash_history 2)不留痕跡
相關文章
相關標籤/搜索