{"id":116,"date":"2019-09-02T10:22:27","date_gmt":"2019-09-02T02:22:27","guid":{"rendered":"https:\/\/wker.com\/?p=116"},"modified":"2019-09-01T17:23:14","modified_gmt":"2019-09-01T09:23:14","slug":"linux-user-logs","status":"publish","type":"post","link":"https:\/\/wker.com\/linux-user-logs\/","title":{"rendered":"Linux\u4e0b\u5982\u4f55\u67e5\u770b\u7528\u6237\u767b\u5f55\u65e5\u5fd7\u8bb0\u5f55"},"content":{"rendered":"<p>\u867d\u7136\u76ee\u524d\u5927\u90e8\u5206\u7684VPS\u63d0\u4f9b\u5546\u90fd\u63d0\u4f9b\u4e86\u7f51\u7edc\u9632\u706b\u5899\uff0c\u53ef\u4ee5\u9650\u5236\u522b\u4eba\u767b\u5f55\u4e3b\u673a\uff0c\u4f46\u662f\u5728\u7ba1\u7406\u670d\u52a1\u5668\u7684\u65f6\u5019\uff0c\u5076\u5c14\u8fd8\u662f\u5f97\u767b\u5f55\u4e0a\u53bb\u770b\u770b\uff0c\u67e5\u8be2\u4e0b\u6709\u6ca1\u6709\u5f02\u5e38\u767b\u5f55\u7684\u8bb0\u5f55\uff0c\u4eca\u5929\u5c31\u5e26\u5927\u5bb6\u4e86\u89e3\u4e0b\u5728Linux\u4e0b\u5982\u4f55\u67e5\u770b\u7528\u6237\u767b\u5f55\u65e5\u5fd7\u3002<\/p>\n<p><strong>last<\/strong><\/p>\n<p>last\u547d\u4ee4\u8f93\u51fa<code>\/var\/log\/wtmp<\/code>\u4e2d\u7684\u5185\u5bb9\uff0c\u8be5\u65e5\u5fd7\u6587\u4ef6\u8bb0\u5f55\u6240\u6709\u7528\u6237\u767b\u5f55\u3001\u6ce8\u9500\u53ca\u7cfb\u7edf\u7684\u542f\u52a8\u3001\u505c\u673a\u7684\u65e5\u5fd7\u4e8b\u4ef6\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium\" src=\"https:\/\/s.wker.com\/uploads\/2019\/09\/last.png\" alt=\"last\u547d\u4ee4\u8f93\u51fa\u6240\u6709\u767b\u5f55\u8bb0\u5f55\" width=\"1062\" height=\"316\" \/><\/p>\n<p><strong>lastb<\/strong><\/p>\n<p>lastb\u547d\u4ee4\u8f93\u51fa<code>\/var\/log\/btmp<\/code>\u4e2d\u7684\u5185\u5bb9\uff0c\u8be5\u65e5\u5fd7\u6587\u4ef6\u8bb0\u5f55\u7684\u662f\u767b\u5f55\u5931\u8d25\u7684\u65e5\u5fd7\u4e8b\u4ef6\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium\" src=\"https:\/\/s.wker.com\/uploads\/2019\/09\/lastb.png\" alt=\"lastb\u8f93\u51fa\u767b\u5f55\u5931\u8d25\u7684\u65e5\u5fd7\u8bb0\u5f55\" width=\"676\" height=\"126\" \/><\/p>\n<p><strong>lastlog<\/strong><\/p>\n<p>lastlog\u547d\u4ee4\u8f93\u51fa<code>\/var\/log\/lastlog<\/code>\u4e2d\u7684\u5185\u5bb9\uff0c\u7528\u6237\u6700\u540e\u4e00\u6b21\u767b\u5f55\u7684\u65f6\u95f4\u3001IP\u5730\u5740\u7b49\u7b49\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium\" src=\"https:\/\/s.wker.com\/uploads\/2019\/09\/lastlog.png\" alt=\"lastlog\u8f93\u51fa\u6240\u6709\u7528\u6237\u7684\u6700\u540e\u767b\u5f55\u65f6\u95f4\" width=\"1040\" height=\"310\" \/><\/p>\n<p><strong>who<\/strong><\/p>\n<p>who\u547d\u4ee4\u4f1a\u663e\u793a\u5f53\u524d\u767b\u5f55\u7684\u7528\u6237\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium\" src=\"https:\/\/s.wker.com\/uploads\/2019\/09\/who.png\" alt=\"who\u547d\u4ee4\u8f93\u51fa\u76ee\u524d\u5728\u7ebf\u7528\u6237\" width=\"812\" height=\"112\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u867d\u7136\u76ee\u524d\u5927\u90e8\u5206\u7684VPS\u63d0\u4f9b\u5546\u90fd\u63d0\u4f9b\u4e86\u7f51\u7edc\u9632\u706b\u5899\uff0c\u53ef\u4ee5\u9650\u5236\u522b\u4eba\u767b\u5f55\u4e3b\u673a\uff0c\u4f46\u662f\u5728\u7ba1\u7406\u670d\u52a1\u5668\u7684\u65f6\u5019\uff0c\u5076\u5c14\u8fd8\u662f\u5f97\u767b\u5f55\u4e0a\u53bb\u770b\u770b\uff0c\u67e5\u8be2\u4e0b\u6709\u6ca1\u6709\u5f02\u5e38\u767b\u5f55\u7684\u8bb0\u5f55\uff0c\u4eca\u5929\u5c31\u5e26\u5927\u5bb6\u4e86\u89e3\u4e0b\u5728Linux\u4e0b\u5982\u4f55\u67e5\u770b\u7528\u6237\u767b\u5f55\u65e5\u5fd7\u3002<\/p>\n<p><a class=\"more-link\" href=\"https:\/\/wker.com\/linux-user-logs\/\">\u7ee7\u7eed\u9605\u8bfb<\/a><\/p>\n","protected":false},"author":1,"featured_media":116,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12],"tags":[32],"class_list":["post-116","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tech","tag-32"],"yoast_head":"<title>Linux\u4e0b\u5982\u4f55\u67e5\u770b\u7528\u6237\u767b\u5f55\u65e5\u5fd7\u8bb0\u5f55 - \u73a9\u5ba2<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/wker.com\/linux-user-logs\/\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/wker.com\\\/linux-user-logs\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/wker.com\\\/linux-user-logs\\\/\"},\"author\":{\"name\":\"\u73a9\u5ba2\",\"@id\":\"https:\\\/\\\/wker.com\\\/#\\\/schema\\\/person\\\/2c967d7ee8b1f5342a4d4bdcb122e67a\"},\"headline\":\"Linux\u4e0b\u5982\u4f55\u67e5\u770b\u7528\u6237\u767b\u5f55\u65e5\u5fd7\u8bb0\u5f55\",\"datePublished\":\"2019-09-02T02:22:27+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/wker.com\\\/linux-user-logs\\\/\"},\"wordCount\":12,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/wker.com\\\/#\\\/schema\\\/person\\\/2c967d7ee8b1f5342a4d4bdcb122e67a\"},\"image\":{\"@id\":\"https:\\\/\\\/wker.com\\\/linux-user-logs\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/s.wker.com\\\/uploads\\\/2019\\\/09\\\/linux-log-featured.png\",\"keywords\":[\"\u65e5\u5fd7\"],\"articleSection\":[\"\u6280\u672f\"],\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/wker.com\\\/linux-user-logs\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/wker.com\\\/linux-user-logs\\\/\",\"url\":\"https:\\\/\\\/wker.com\\\/linux-user-logs\\\/\",\"name\":\"Linux\u4e0b\u5982\u4f55\u67e5\u770b\u7528\u6237\u767b\u5f55\u65e5\u5fd7\u8bb0\u5f55 - \u73a9\u5ba2\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/wker.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/wker.com\\\/linux-user-logs\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/wker.com\\\/linux-user-logs\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/s.wker.com\\\/uploads\\\/2019\\\/09\\\/linux-log-featured.png\",\"datePublished\":\"2019-09-02T02:22:27+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/wker.com\\\/linux-user-logs\\\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/wker.com\\\/linux-user-logs\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\\\/\\\/wker.com\\\/linux-user-logs\\\/#primaryimage\",\"url\":\"https:\\\/\\\/s.wker.com\\\/uploads\\\/2019\\\/09\\\/linux-log-featured.png\",\"contentUrl\":\"https:\\\/\\\/s.wker.com\\\/uploads\\\/2019\\\/09\\\/linux-log-featured.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/wker.com\\\/linux-user-logs\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\\\/\\\/wker.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Linux\u4e0b\u5982\u4f55\u67e5\u770b\u7528\u6237\u767b\u5f55\u65e5\u5fd7\u8bb0\u5f55\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/wker.com\\\/#website\",\"url\":\"https:\\\/\\\/wker.com\\\/\",\"name\":\"\u73a9\u5ba2\",\"description\":\"\u975e\u4e13\u4e1a\u8fd0\u7ef4\u535a\u5ba2\",\"publisher\":{\"@id\":\"https:\\\/\\\/wker.com\\\/#\\\/schema\\\/person\\\/2c967d7ee8b1f5342a4d4bdcb122e67a\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/wker.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"zh-Hans\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/wker.com\\\/#\\\/schema\\\/person\\\/2c967d7ee8b1f5342a4d4bdcb122e67a\",\"name\":\"\u73a9\u5ba2\",\"logo\":{\"@id\":\"https:\\\/\\\/wker.com\\\/#\\\/schema\\\/person\\\/image\\\/\"}}]}<\/script>","yoast_head_json":{"title":"Linux\u4e0b\u5982\u4f55\u67e5\u770b\u7528\u6237\u767b\u5f55\u65e5\u5fd7\u8bb0\u5f55 - \u73a9\u5ba2","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/wker.com\/linux-user-logs\/","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/wker.com\/linux-user-logs\/#article","isPartOf":{"@id":"https:\/\/wker.com\/linux-user-logs\/"},"author":{"name":"\u73a9\u5ba2","@id":"https:\/\/wker.com\/#\/schema\/person\/2c967d7ee8b1f5342a4d4bdcb122e67a"},"headline":"Linux\u4e0b\u5982\u4f55\u67e5\u770b\u7528\u6237\u767b\u5f55\u65e5\u5fd7\u8bb0\u5f55","datePublished":"2019-09-02T02:22:27+00:00","mainEntityOfPage":{"@id":"https:\/\/wker.com\/linux-user-logs\/"},"wordCount":12,"commentCount":0,"publisher":{"@id":"https:\/\/wker.com\/#\/schema\/person\/2c967d7ee8b1f5342a4d4bdcb122e67a"},"image":{"@id":"https:\/\/wker.com\/linux-user-logs\/#primaryimage"},"thumbnailUrl":"https:\/\/s.wker.com\/uploads\/2019\/09\/linux-log-featured.png","keywords":["\u65e5\u5fd7"],"articleSection":["\u6280\u672f"],"inLanguage":"zh-Hans","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/wker.com\/linux-user-logs\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/wker.com\/linux-user-logs\/","url":"https:\/\/wker.com\/linux-user-logs\/","name":"Linux\u4e0b\u5982\u4f55\u67e5\u770b\u7528\u6237\u767b\u5f55\u65e5\u5fd7\u8bb0\u5f55 - \u73a9\u5ba2","isPartOf":{"@id":"https:\/\/wker.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/wker.com\/linux-user-logs\/#primaryimage"},"image":{"@id":"https:\/\/wker.com\/linux-user-logs\/#primaryimage"},"thumbnailUrl":"https:\/\/s.wker.com\/uploads\/2019\/09\/linux-log-featured.png","datePublished":"2019-09-02T02:22:27+00:00","breadcrumb":{"@id":"https:\/\/wker.com\/linux-user-logs\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/wker.com\/linux-user-logs\/"]}]},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/wker.com\/linux-user-logs\/#primaryimage","url":"https:\/\/s.wker.com\/uploads\/2019\/09\/linux-log-featured.png","contentUrl":"https:\/\/s.wker.com\/uploads\/2019\/09\/linux-log-featured.png"},{"@type":"BreadcrumbList","@id":"https:\/\/wker.com\/linux-user-logs\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/wker.com\/"},{"@type":"ListItem","position":2,"name":"Linux\u4e0b\u5982\u4f55\u67e5\u770b\u7528\u6237\u767b\u5f55\u65e5\u5fd7\u8bb0\u5f55"}]},{"@type":"WebSite","@id":"https:\/\/wker.com\/#website","url":"https:\/\/wker.com\/","name":"\u73a9\u5ba2","description":"\u975e\u4e13\u4e1a\u8fd0\u7ef4\u535a\u5ba2","publisher":{"@id":"https:\/\/wker.com\/#\/schema\/person\/2c967d7ee8b1f5342a4d4bdcb122e67a"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/wker.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"zh-Hans"},{"@type":["Person","Organization"],"@id":"https:\/\/wker.com\/#\/schema\/person\/2c967d7ee8b1f5342a4d4bdcb122e67a","name":"\u73a9\u5ba2","logo":{"@id":"https:\/\/wker.com\/#\/schema\/person\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/wker.com\/wp-json\/wp\/v2\/posts\/116","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wker.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wker.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wker.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wker.com\/wp-json\/wp\/v2\/comments?post=116"}],"version-history":[{"count":0,"href":"https:\/\/wker.com\/wp-json\/wp\/v2\/posts\/116\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/wker.com\/wp-json\/wp\/v2\/posts\/116"}],"wp:attachment":[{"href":"https:\/\/wker.com\/wp-json\/wp\/v2\/media?parent=116"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wker.com\/wp-json\/wp\/v2\/categories?post=116"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wker.com\/wp-json\/wp\/v2\/tags?post=116"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}