v2ray-agent/shell/empty_login_history.sh

14 lines
449 B
Bash
Raw Normal View History

2020-11-11 16:31:03 +08:00
#!/usr/bin/env bash
# 清空访问日志
2020-11-21 16:40:27 +08:00
# wget -P /tmp -N --no-check-certificate "https://raw.githubusercontent.com/mack-a/v2ray-agent/master/shell/empty_login_history.sh" && chmod 700 /tmp/empty_login_history.sh && /tmp/empty_login_history.sh
echo "清空中"
2020-11-21 16:24:16 +08:00
echo > /var/log/wtmp
2020-11-11 16:31:03 +08:00
echo > /var/log/btmp
2020-11-21 16:40:27 +08:00
echo > /var/log/lastlog
2020-11-11 16:31:03 +08:00
echo > ~/.bash_history
2020-11-21 16:40:27 +08:00
echo "清空完毕"
echo "删除脚本"
2020-11-21 16:26:15 +08:00
rm -rf /tmp/empty_login_history.sh
history -c
2020-11-21 16:40:27 +08:00
echo "done"