{"id":4241,"date":"2022-12-20T17:39:51","date_gmt":"2022-12-20T20:39:51","guid":{"rendered":"http:\/\/lode.uno\/linux-man\/index.php\/2022\/12\/20\/lastlog-zh_cn\/"},"modified":"2022-12-20T17:39:51","modified_gmt":"2022-12-20T20:39:51","slug":"lastlog-zh_cn","status":"publish","type":"post","link":"https:\/\/lode.uno\/linux-man\/2022\/12\/20\/lastlog-zh_cn\/","title":{"rendered":"LASTLOG (zh_CN)"},"content":{"rendered":"<h1 align=\"center\">LASTLOG<\/h1>\n<p> <a href=\"#\u00e5\u00e7\u00a7\u00b0\">\u00e5\u00e7\u00a7\u00b0<\/a><br \/> <a href=\"#\u00e5\u00a4\u00a7\u00e7\u00ba\u00b2\">\u00e5\u00a4\u00a7\u00e7\u00ba\u00b2<\/a><br \/> <a href=\"#\u00e6\u00e8\u00bf\u00b0\">\u00e6\u00e8\u00bf\u00b0<\/a><br \/> <a href=\"#\u00e9\u00e9\u00a1\u00b9\">\u00e9\u00e9\u00a1\u00b9<\/a><br \/> <a href=\"#\u00e6\u00b3\u00a8\u00e6\">\u00e6\u00b3\u00a8\u00e6<\/a><br \/> <a href=\"#\u00e6\u00e4\u00bb\u00b6\">\u00e6\u00e4\u00bb\u00b6<\/a><br \/> <a href=\"#CAVEATS\">CAVEATS<\/a> <\/p>\n<hr>\n<h2>\u00e5\u00e7\u00a7\u00b0 <a name=\"\u00e5\u00e7\u00a7\u00b0\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">lastlog \u2212 \u00e6\u00a5\u00e5\u00e6\u00e6\u00e7\u00a8\u00e6\u00b7\u00e7\u00e6\u00e8\u00bf\u00e7\u00bb\u00e5\u00bd\u00e6\u00e5\u00b5\u00ef\u00bc\u00e6\u00e8\u00e6\u00e5\u00ae\u00e7\u00a8\u00e6\u00b7\u00e7\u00e6\u00e8\u00bf\u00e7\u00bb\u00e5\u00bd\u00e6\u00e5\u00b5<\/p>\n<h2>\u00e5\u00a4\u00a7\u00e7\u00ba\u00b2 <a name=\"\u00e5\u00a4\u00a7\u00e7\u00ba\u00b2\"><\/a> <\/h2>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"21%\">\n<p style=\"margin-top: 1em\"><b>lastlog<\/b> [<i>\u00e9\u00e9\u00a1\u00b9<\/i>]<\/p>\n<\/td>\n<td width=\"68%\"> <\/td>\n<\/tr>\n<\/table>\n<h2>\u00e6\u00e8\u00bf\u00b0 <a name=\"\u00e6\u00e8\u00bf\u00b0\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>lastlog<\/b> formats and prints the contents of the last login log \/var\/log\/lastlog file. The <i>login\u2212name<\/i>, <i>port<\/i>, and <i>last login time<\/i> will be printed. The default (no flags) causes lastlog entries to be printed, sorted by their order in \/etc\/passwd.<\/p>\n<h2>\u00e9\u00e9\u00a1\u00b9 <a name=\"\u00e9\u00e9\u00a1\u00b9\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>lastlog<\/b> \u00e5\u00bd\u00e4\u00bb\u00a4\u00e5\u00af\u00e4\u00bb\u00a5\u00e6\u00a5\u00e5\u00e7\u00e9\u00e9\u00a1\u00b9\u00e6\u00ef\u00bc<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>\u2212b<\/b>, <b>\u2212\u2212before\u00a0<\/b><i>DAYS<\/i><\/p>\n<p style=\"margin-left:17%;\">\u00e5\u00aa\u00e6\u00be\u00e7\u00a4\u00ba\u00e8\u00e4\u00ba <i>DAYS<\/i> \u00e7\u00e6\u00e8\u00bf\u00e7\u00bb\u00e5\u00bd\u00e8\u00ae\u00b0\u00e5\u00bd\u00e3<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>\u2212C<\/b>, <b>\u2212\u2212clear<\/b><\/p>\n<p style=\"margin-left:17%;\">Clear lastlog record of a user. This option can be used only together with <b>\u2212u<\/b> (<b>\u2212\u2212user<\/b>)).<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>\u2212h<\/b>, <b>\u2212\u2212help<\/b><\/p>\n<p style=\"margin-left:17%;\">\u00e7\u00b0\u00e5\u00ae\u00e5\u00b8\u00ae\u00e5\u00a9\u00e4\u00bf\u00a1\u00e6\u00af\u00e5\u00b9\u00b6\u00e9\u00e5\u00ba\u00e3<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>\u2212R<\/b>, <b>\u2212\u2212root\u00a0<\/b><i>CHROOT_DIR<\/i><\/p>\n<p style=\"margin-left:17%;\">Apply changes in the <i>CHROOT_DIR<\/i> directory and use the configuration files from the <i>CHROOT_DIR<\/i> directory.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>\u2212S<\/b>, <b>\u2212\u2212set<\/b><\/p>\n<p style=\"margin-left:17%;\">Set lastlog record of a user to the current time. This option can be used only together with <b>\u2212u<\/b> (<b>\u2212\u2212user<\/b>)).<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>\u2212t<\/b>, <b>\u2212\u2212time\u00a0<\/b><i>DAYS<\/i><\/p>\n<p style=\"margin-left:17%;\">\u00e5\u00aa\u00e7\u00b0\u00e5\u00ae\u00e6\u00b0\u00e4\u00ba <i>DAYS<\/i> \u00e7\u00e6\u00e8\u00bf\u00e7\u00bb\u00e5\u00bd\u00e8\u00ae\u00b0\u00e5\u00bd\u00e3<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>\u2212u<\/b>, <b>\u2212\u2212user\u00a0<\/b><i>LOGIN<\/i>|<i>RANGE<\/i><\/p>\n<p style=\"margin-left:17%;\">\u00e7\u00b0\u00e5\u00ae\u00e6\u00e5\u00ae\u00e7\u00a8\u00e6\u00b7\u00e7\u00e6\u00e8\u00bf\u00e7\u00bb\u00e5\u00bd\u00e8\u00ae\u00b0\u00e5\u00bd\u00e3<\/p>\n<p style=\"margin-left:17%; margin-top: 1em\">The users can be specified by a login name, a numerical user ID, or a <i>RANGE<\/i> of users. This <i>RANGE<\/i> of users can be specified with a min and max values (<i>UID_MIN\u2212UID_MAX<\/i>), a max value (<i>\u2212UID_MAX<\/i>), or a min value (<i>UID_MIN\u2212<\/i>).<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">\u00e5\u00a6\u00e6\u00e7\u00a8\u00e6\u00b7\u00e4\u00bb\u00e6\u00a5\u00e6\u00b2\u00a1\u00e6\u00e7\u00bb\u00e5\u00bd\u00e8\u00bf\u00ef\u00bc\u00e5\u00b0\u00e4\u00bc\u00e6\u00be\u00e7\u00a4\u00ba <i>** \u00e4\u00bb\u00e6\u00aa\u00e7\u00bb\u00e5\u00bd **<\/i> \u00e8\u00e4\u00b8\u00e6\u00af\u00e7\u00ab\u00af\u00e5\u00a3\u00e5\u00e6\u00b6\u00e9\u00b4\u00e3<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Only the entries for the current users of the system will be displayed. Other entries may exist for users that were deleted previously.<\/p>\n<h2>\u00e6\u00b3\u00a8\u00e6 <a name=\"\u00e6\u00b3\u00a8\u00e6\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">The lastlog file is a database which contains info on the last login of each user. You should not rotate it. It is a sparse file, so its size on the disk is usually much smaller than the one shown by &#8220;<b>ls \u2212l<\/b>&#8221; (which can indicate a really big file if you have in passwd users with a high UID). You can display its real size with &#8220;<b>ls \u2212s<\/b>&#8220;.<\/p>\n<h2>\u00e6\u00e4\u00bb\u00b6 <a name=\"\u00e6\u00e4\u00bb\u00b6\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">\/var\/log\/lastlog<\/p>\n<p style=\"margin-left:17%;\">Database times of previous user logins.<\/p>\n<h2>CAVEATS <a name=\"CAVEATS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">Large gaps in UID numbers will cause the lastlog program to run longer with no output to the screen (i.e. if in lastlog database there is no entries for users with UID between 170 and 800 lastlog will appear to hang as it processes entries with UIDs 171\u2212799).<\/p>\n<hr>\n","protected":false},"excerpt":{"rendered":"<p>LASTLOG \u00e5\u00e7\u00a7\u00b0 \u00e5\u00a4\u00a7\u00e7\u00ba\u00b2 \u00e6\u00e8\u00bf\u00b0 \u00e9\u00e9\u00a1\u00b9 \u00e6\u00b3\u00a8\u00e6 \u00e6\u00e4\u00bb\u00b6 CAVEATS \u00e5\u00e7\u00a7\u00b0 lastlog \u2212 \u00e6\u00a5\u00e5\u00e6\u00e6\u00e7\u00a8\u00e6\u00b7\u00e7\u00e6\u00e8\u00bf\u00e7\u00bb\u00e5\u00bd\u00e6\u00e5\u00b5\u00ef\u00bc\u00e6\u00e8\u00e6\u00e5\u00ae\u00e7\u00a8\u00e6\u00b7\u00e7\u00e6\u00e8\u00bf\u00e7\u00bb\u00e5\u00bd\u00e6\u00e5\u00b5 \u00e5\u00a4\u00a7\u00e7\u00ba\u00b2 lastlog [\u00e9\u00e9\u00a1\u00b9] \u00e6\u00e8\u00bf\u00b0 lastlog formats and prints the contents of the last login log \/var\/log\/lastlog file. The login\u2212name, port, and last login time will be printed. The default (no flags) causes lastlog entries to be printed, sorted by their order in \/etc\/passwd. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[5,52,330,1284],"class_list":["post-4241","post","type-post","status-publish","format-standard","hentry","category-8-administracion-del-sistema","tag-5","tag-administracion","tag-lastlog","tag-zh_cn"],"gutentor_comment":0,"_links":{"self":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/4241","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/comments?post=4241"}],"version-history":[{"count":0,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/4241\/revisions"}],"wp:attachment":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/media?parent=4241"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/categories?post=4241"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/tags?post=4241"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}