使用last帮助定位系统问题

 

Linux命令last使用的人可能不多,但是却十分有用:

1,使用"last reboot" 帮助定位什么时候机器重起。

2,谁,什么时候从哪儿登陆系统。在系统登陆了多长时间。 

ATCA29-0-0-1:/root-# last reboot

reboot   system boot  2.6.18-274.el5   Sun Oct 30 13:35          (23:58)

reboot   system boot  2.6.18-274.el5   Sun Oct 30 04:37         (1+08:56)

reboot   system boot  2.6.18-274.el5   Sat Oct 29 19:38         (1+17:55)

reboot   system boot  2.6.18-274.el5   Fri Oct 28 16:12         (2+21:21)

reboot   system boot  2.6.18-274.el5   Thu Oct 27 16:14         (3+21:19)

reboot   system boot  2.6.18-274.el5   Thu Oct 27 11:20         (4+02:13)

reboot   system boot  2.6.18-274.el5   Thu Oct 27 10:51         (4+02:42)

reboot   system boot  2.6.18-274.el5   Fri Oct 21 09:16         (10+04:17)

 

ATCA29-0-0-1:/root-# last

root     pts/0        atca29-0-0-9     Mon Oct 31 13:24   still logged in

reboot   system boot  2.6.18-274.el5   Sun Oct 30 13:35          (23:49)

reboot   system boot  2.6.18-274.el5   Sun Oct 30 04:37         (1+08:47)

reboot   system boot  2.6.18-274.el5   Sat Oct 29 19:38         (1+17:45)

reboot   system boot  2.6.18-274.el5   Fri Oct 28 16:12         (2+21:12)

ainet    pts/0        bjlinc1079.cn.al Fri Oct 28 16:10 - crash  (00:01)

ainet    pts/7        bjlinc1046.cn.al Fri Oct 28 14:21 - 16:10  (01:49)

ainet    pts/0        135.252.181.79   Thu Oct 20 21:32 - crash  (00:06)

reboot   system boot  2.6.18-274.el5   Thu Oct 20 21:28         (10+15:55)

ainet    pts/11       bjlinc1079.cn.al Thu Oct 20 20:46 - 21:26  (00:39)

ainet    pts/10       bjlinc1079.cn.al Thu Oct 20 20:43 - 21:26  (00:42)

ainet    pts/1        bjlinc1229.cn.lu Thu Oct 20 12:57 - down   (00:01)

ainet    pts/0        135.252.181.229  Thu Oct 20 11:39 - down   (01:20)

..

wtmp begins Fri Sep 30 16:08:21 2011

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值