{"id":2217,"date":"2018-12-17T20:51:26","date_gmt":"2018-12-17T20:51:26","guid":{"rendered":"http:\/\/www.incredigeek.com\/home\/?p=2217"},"modified":"2018-12-17T20:52:46","modified_gmt":"2018-12-17T20:52:46","slug":"check-if-linux-user-is-logged-in","status":"publish","type":"post","link":"https:\/\/www.incredigeek.com\/home\/check-if-linux-user-is-logged-in\/","title":{"rendered":"Check if Linux user is logged in"},"content":{"rendered":"\n<p>The following commands are helpful for seeing if a user is currently logged in, or when the last time a user was on.<\/p>\n\n\n\n<p><strong>Who<\/strong><\/p>\n\n\n\n<p>The &#8220;who&#8221; command give information about users that are currently logged in<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">[steve@localhost ~]$ who<br>root   pts\/0        2018-12-14 15:05 (192.168.1.23)<br>steve  pts\/2        2018-12-14 12:09 (192.168.1.25)<br>[steve@localhost ~]$<\/pre>\n\n\n\n<p><strong>Last<\/strong><\/p>\n\n\n\n<p>The last command shows a list of the last logged in users<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">[steve@localhost ~]$ last<br>steve    pts\/2        192.168.1.25    Fri Dec 14 15:05   still logged in<br>root     pts\/1        192.168.1.23    Fri Dec 14 12:09 - 12:09  (00:00)<br>steve       tty1                      Thu Nov  8 10:02 - 10:15  (00:13)<br>reboot   system boot  4.7.0.x         Thu Nov  8 09:01 - 10:12  (01:01)<br>wtmp begins Tue Oct 11 09:01:57 2018<br>[steve@localhost ~]$ <br><\/pre>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The following commands are helpful for seeing if a user is currently logged in, or when the last time a user was on. Who The &#8220;who&#8221; command give information about users that are currently logged in [steve@localhost ~]$ whoroot pts\/0 &hellip; <a href=\"https:\/\/www.incredigeek.com\/home\/check-if-linux-user-is-logged-in\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,3],"tags":[553,7,551,550,549,552],"class_list":["post-2217","post","type-post","status-publish","format-standard","hentry","category-command-line","category-linux","tag-last","tag-linux-2","tag-login","tag-user","tag-users","tag-who"],"_links":{"self":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/2217","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/comments?post=2217"}],"version-history":[{"count":5,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/2217\/revisions"}],"predecessor-version":[{"id":2222,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/2217\/revisions\/2222"}],"wp:attachment":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/media?parent=2217"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/categories?post=2217"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/tags?post=2217"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}