添加:rm -f $HOME/.bash_history
history行为审计: [[email protected] ~]# history 33 node6 2016-09-06-13-13-22 root 192.168.1.243 ./history.sh 34 node6 2016-09-06-13-13-22 root 192.168.1.243 cat history.sh 35 node6 2016-09-06-13-13-22 root 192.168.1.243 vim history.sh 36 node6 2016-09-06-13-13-22 root 192.168.1.243 ./history.sh 37 node6 2016-09-06-13-13-22 root 192.168.1.243 cat .bash_history 38 node6 2016-09-06-13-13-22 root 192.168.1.243 vim .bash_history 39 node6 2016-09-06-13-13-22 root 192.168.1.243 ll . 40 node6 2016-09-06-13-13-22 root 192.168.1.243 cat .bashrc 41 node6 2016-09-06-13-13-22 root 192.168.1.243 cat .bash_profile 42 node6 2016-09-06-13-13-22 root 192.168.1.243 vim /etc/profile 43 node6 2016-09-06-13-13-22 root 192.168.1.243 source /etc/profile 44 node6 2016-09-06-13-13-22 root 192.168.1.243 vim .bash_profile 45 node6 2016-09-06-13-13-22 root 192.168.1.243 cat .bash_history 46 node6 2016-09-06-13-13-22 root 192.168.1.243 history 47 node6 2016-09-06-13-13-22 root 192.168.1.243 echo HISTFILESIZE 48 node6 2016-09-06-13-13-22 root 192.168.1.243 echo $HISTFILESIZE 49 node6 2016-09-06-13-13-22 root 192.168.1.243 echo $HISTSIZE 50 node6 2016-09-06-13-13-22 root 192.168.1.243 history 51 node6 2016-09-06-13-13-22 root 192.168.1.243 vim .bash_logout 52 node6 2016-09-06-13-13-22 root 192.168.1.243 history [[email protected] ~]#
时间: 2025-01-14 15:18:33