From 7f36dbc4025920fbcd6b7d97c976eb6d8a761b74 Mon Sep 17 00:00:00 2001 From: mack-a <57424792+mack-a@users.noreply.github.com> Date: Wed, 11 Nov 2020 16:31:03 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E8=84=9A=E6=9C=AC):=20=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E8=AE=BF=E9=97=AE=E6=97=A5=E5=BF=97=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shell/empty_login_history.sh | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100755 shell/empty_login_history.sh diff --git a/shell/empty_login_history.sh b/shell/empty_login_history.sh new file mode 100755 index 0000000..c46a7b2 --- /dev/null +++ b/shell/empty_login_history.sh @@ -0,0 +1,6 @@ +#!/usr/bin/env bash +# 清空访问日志 +echo > /var/log/wtm +echo > /var/log/btmp +echo > ~/.bash_history +history -c \ No newline at end of file