使用last帮助定位系统问题
2011-11-01 12:37
288 查看
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
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
相关文章推荐
- 使用BTRACE定位系统中慢的问题
- iOS11问题: 定位服务在iOS11系统上不能使用?
- 使用U盘重装win7系统出现“安装程序无法定位现有系统分区,也无法创建新的系统分区”问题的解决方案
- 使用U盘安装win7系统,遇到“无法定位现有系统分区”问题
- 关于使用getLastKnownLocation定位报错的问题
- 使用U盘安装win7系统,遇到“无法定位现有系统分区”问题
- iOS11问题: 定位服务在iOS11系统上不能使用?
- 过度使用DBLINK做系统集成会带来的问题
- aix5.3系统安装oracle 10g使用裸设备--4k偏移量问题 推荐
- 八大问题帮助IT管理人员做好在线ERP系统调研
- 关于AndroidManifest.xml开发中使用系统权限报错的问题
- ubuntu系统无线wifi等不能使用问题
- 使用百度地图sdk4d.so定位到非洲的问题
- 使用JIRA搭建企业问题跟踪系统.PART2(转)
- 使用ecshop电子商务系统的100个小问题
- FL2440板上的DNW的USB烧写驱动使用VMware虚拟机上winxp系统时的问题解决
- AIDL的简单使用,涵盖5.0之后系统及魅族手机调用问题的解决
- 使用新系统碰到的问题,一起研究一下吧
- .NET分布式事务未提交造成6107错误或系统被挂起的问题分析定位
- android系统相机的使用、及解决拍照闪退的问题