last显示登陆信息,查看重启时间等。
css@csc:~/test$ last
test1 tty1 Tue Jan 13 15:21 still logged in
css pts/15 :0 Tue Jan 13 15:21 - 15:21 (00:00)
css pts/15 :0 Tue Jan 13 15:20 - 15:21 (00:00)
css pts/24 :0 Tue Jan 13 14:38 - 14:39 (00:00)
css pts/15 :0 Tue Jan 13 14:38 - 14:39 (00:00)
css pts/0 :0 Tue Jan 13 08:49 still logged in
css :0 :0 Tue Jan 13 08:44 still logged in
reboot system boot 3.13.0-32-generi Tue Jan 13 08:43 - 15:35 (06:51)
lastlog显示所有用户登陆信息
css@csc:~/test$ lastlog
用户名 端口 来自 最后登陆时间
root **从未登录过**
test1 tty1 二 1月 13 15:21:51 +0800 2015
阅读(161) | 评论(0) | 转发(0) |