我想编写一个shell脚本来整理last
命令显示的数据。这是我在服务器上得到的。
root pts/0 10.168.136.175 Wed Sep 14 14:24 - 14:54 (00:29)
root :0 Mon Sep 12 10:34 - 11:00 (00:25)
reboot system boot 2.6.18-308.el5PA Sun Sep 11 11:31 (86+03:05)
我进行了一些搜索,有些人说第三列中的:0.0
表示本地登录,第二列表示使用的终端类型,例如pts
和tty
。
但是在我的日志中,第二行第二列的:0
代表什么?
我正在使用redhat 6.5。