<p>1.备份wtmp/btmp</p><div class="wp_syntax"><div class="code"><pre class="shell" style="font-family:monospace;">cp /var/log/wtmp ~/log/wtmp</pre></div></div><p>2.清空wtmp/btmp<br />使用命令</p><div class="wp_syntax"><div class="code"><pre class="shell" style="font-family:monospace;">cat /dev/null > /var/log/wtmp</pre></div></div><p>或者</p><div class="wp_syntax"><div class="code"><pre class="shell" style="font-family:monospace;">> /var/log/wtmp</pre></div></div><p>上面的例子为清空登陆成功记录,将wtmp改成btmp即清空失败记录。<br />-EOF-</p><br />