I want to write a shell script sort out the data that last
command shows.
I got this in my server.
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)
I did some search, there are some saying :0.0
in the 3rd column means login locally, second column means what kind of terminal been use, like pts
and tty
.
But what does the :0
in line 2 second column in my log?
I am using redhat 6.5.