标签:
/var/log/wtmp文件的作用
debian:/var/log# last
root pts/1 :0.0 Thu Jul 7 23:19 still logged in
root pts/3 :0.0 Thu Jul 7 22:31 still logged in
root pts/3 :0.0 Thu Jul 7 20:17 - 22:24 (02:06)
root pts/1 :0.0 Thu Jul 7 20:14 - 22:39 (02:24)
root :0 Thu Jul 7 20:12 still logged in
reboot system boot 2.6.10 Thu Jul 7 20:10 (03:17)
....
或者用last -f /var/log/wtmp
或
# who-u /var/log/wtmp
标签:
原文地址:http://www.cnblogs.com/zhouhbing/p/4302772.html