Linux镜像清理日志操作

1.安全

    没有其他用户

    查看 ll  /home下没有其他用户

2.清理日志

    rm -rf /root/*

    rm -rf /tmp/*

    rm -rf /etc/udev/rules.d/persistent-net.rules

    rm -rf /root/.ssh/*

   rm -rf /var/lib/dhclient/*

   rm -rf /var/lib/NetworkManager/*

   find /var/log -type f -exec cp /dev/null {} \;

   history -w;>/root/.bash_history;history -c ;history -c;

posted @ 2019-04-16 22:02  出水芙蓉·薇薇  阅读(345)  评论(0编辑  收藏  举报