查看登陆的几个常用命令

 last  lastlog dmesg

 dmesg |more
 last -n number
 last -f filename :last 预设读出/var/log/wtmp这个档案,但是我们可以透过-f读取不同的登录文件消息
 lastlog 只是读出/var/log/lastlog内的信息
 lastwatch 能每天分析一次登录档案,并且将数据以email的格式寄给root!

猜你喜欢

转载自gaylord.iteye.com/blog/2088553