清除登录和命令执行记录

1、清除history,执行过的命令

# history -c

 

2、清除last,登录成功的记录

# /var/log/wtmp

 

3、清除lastb,登录失败的记录

# /var/log/btmp


你可能感兴趣的:(清除登录和命令执行记录)