{"id":18,"date":"2005-10-14T04:28:00","date_gmt":"2005-10-14T04:28:00","guid":{"rendered":"http:\/\/blog.trungson.com\/?p=18"},"modified":"2005-10-14T04:28:00","modified_gmt":"2005-10-14T04:28:00","slug":"useful-linux-command-last","status":"publish","type":"post","link":"http:\/\/blog.trungson.com\/?p=18","title":{"rendered":"Useful Linux command &#8211; last"},"content":{"rendered":"<pre>\n[root@s1 ~]# man last\nLast searches back through the file \/var\/log\/wtmp (or the \nfile designated by the -f flag) and displays a list of all \nusers logged in (and out) since that file was created.\n\n[root@s1 ~]# last -R\nroot     pts\/0        Fri Oct 14 00:17   still logged in\nroot     pts\/0        Thu Oct 13 15:31 - 15:32  (00:00)\nroot     pts\/0        Thu Oct 13 14:15 - 14:17  (00:02)\nroot     pts\/0        Thu Oct 13 11:59 - 13:42  (01:43)\nroot     pts\/1        Tue Oct 11 08:24 - 08:24  (00:00)\nroot     pts\/0        Tue Oct 11 08:17 - 18:44  (10:27)\nroot     pts\/0        Tue Oct 11 02:41 - 04:40  (01:58)\nreboot   system boot  Tue Oct 11 02:37         (2+21:49)\nroot     pts\/0        Tue Oct 11 02:22 - down   (00:13)\nreboot   system boot  Tue Oct 11 02:22          (00:14)\nroot     pts\/1        Tue Oct 11 02:17 - 02:18  (00:00)\nroot     pts\/1        Tue Oct 11 02:16 - 02:16  (00:00)\nroot     pts\/0        Tue Oct 11 01:10 - down   (01:10)\nreboot   system boot  Tue Oct 11 01:03          (01:18)\nroot     pts\/0        Tue Oct 11 00:16 - down   (00:45)\nreboot   system boot  Tue Oct 11 00:12          (00:49)\nroot     pts\/0        Mon Oct 10 21:42 - down   (02:28)\nreboot   system boot  Mon Oct 10 21:37          (02:33)\nroot     pts\/0        Mon Oct 10 21:00 - down   (00:36)\nreboot   system boot  Mon Oct 10 20:55          (00:41)\nroot     pts\/1        Mon Oct 10 20:26 - down   (00:28)\nroot     pts\/0        Mon Oct 10 20:22 - down   (00:32)\nreboot   system boot  Mon Oct 10 20:21          (00:32)\nroot     pts\/0        Mon Oct 10 20:17 - down   (00:03)\nreboot   system boot  Mon Oct 10 20:14          (00:06)\nroot     pts\/1        Mon Oct 10 18:18 - down   (01:55)\nroot     pts\/1        Sat Oct  8 14:59 - 18:01  (03:02)\nroot     pts\/1        Sat Oct  8 01:50 - 01:54  (00:04)\nroot     pts\/1        Fri Oct  7 19:48 - 20:24  (00:35)\n\nwtmp begins Fri Oct  7 19:48:49 2005\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>[root@s1 ~]# man last Last searches back through the file \/var\/log\/wtmp (or the file designated by the -f flag) and displays a list of all users logged in (and out) since that file was created. [root@s1 ~]# last -R root pts\/0 Fri Oct 14 00:17 still logged in root pts\/0 Thu Oct 13 15:31 &#8211; [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"_links":{"self":[{"href":"http:\/\/blog.trungson.com\/index.php?rest_route=\/wp\/v2\/posts\/18"}],"collection":[{"href":"http:\/\/blog.trungson.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.trungson.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.trungson.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.trungson.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=18"}],"version-history":[{"count":0,"href":"http:\/\/blog.trungson.com\/index.php?rest_route=\/wp\/v2\/posts\/18\/revisions"}],"wp:attachment":[{"href":"http:\/\/blog.trungson.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=18"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.trungson.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=18"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.trungson.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=18"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}