summaryrefslogtreecommitdiff
path: root/man/zh_CN/lastlog.8
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2012-06-04 01:35:42 +0000
committerIgor Pashev <pashev.igor@gmail.com>2012-06-04 01:35:42 +0000
commit6c1662a897fd34b5b0b0174ab83552b016d05e8d (patch)
tree0b620ad69aa7498e5cd3bd7efc5afd90669d3016 /man/zh_CN/lastlog.8
downloadshadow-6c1662a897fd34b5b0b0174ab83552b016d05e8d.tar.gz
Imported Upstream version 4.1.5upstream/4.1.5
Diffstat (limited to 'man/zh_CN/lastlog.8')
-rw-r--r--man/zh_CN/lastlog.8102
1 files changed, 102 insertions, 0 deletions
diff --git a/man/zh_CN/lastlog.8 b/man/zh_CN/lastlog.8
new file mode 100644
index 0000000..ccf0e59
--- /dev/null
+++ b/man/zh_CN/lastlog.8
@@ -0,0 +1,102 @@
+'\" t
+.\" Title: lastlog
+.\" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
+.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
+.\" Date: 2012-02-12
+.\" Manual: 系统管理命令
+.\" Source: shadow-utils 4.1.5
+.\" Language: Chinese Simplified
+.\"
+.TH "LASTLOG" "8" "2012-02-12" "shadow\-utils 4\&.1\&.5" "系统管理命令"
+.\" -----------------------------------------------------------------
+.\" * set default formatting
+.\" -----------------------------------------------------------------
+.\" disable hyphenation
+.nh
+.\" disable justification (adjust text to left margin only)
+.ad l
+.\" -----------------------------------------------------------------
+.\" * MAIN CONTENT STARTS HERE *
+.\" -----------------------------------------------------------------
+.SH "名称"
+lastlog \- 报告所有用户的最近登录情况,或者指定用户的最近登录情况
+.SH "大纲"
+.HP \w'\fBlastlog\fR\ 'u
+\fBlastlog\fR [\fI选项\fR]
+.SH "描述"
+.PP
+
+\fBlastlog\fR
+formats and prints the contents of the last login log
+/var/log/lastlog
+file\&. The
+\fIlogin\-name\fR,
+\fIport\fR, and
+\fIlast login time\fR
+will be printed\&. The default (no flags) causes lastlog entries to be printed, sorted by their order in
+/etc/passwd\&.
+.SH "选项"
+.PP
+\fBlastlog\fR
+命令可以接受的选项有:
+.PP
+\fB\-b\fR, \fB\-\-before\fR\fIDAYS\fR
+.RS 4
+只显示老于
+\fIDAYS\fR
+的最近登录记录。
+.RE
+.PP
+\fB\-h\fR, \fB\-\-help\fR
+.RS 4
+现实帮助信息并退出。
+.RE
+.PP
+\fB\-R\fR, \fB\-\-root\fR\fICHROOT_DIR\fR
+.RS 4
+Apply changes in the
+\fICHROOT_DIR\fR
+directory and use the configuration files from the
+\fICHROOT_DIR\fR
+directory\&.
+.RE
+.PP
+\fB\-t\fR, \fB\-\-time\fR\fIDAYS\fR
+.RS 4
+只现实新于
+\fIDAYS\fR
+的最近登录记录。
+.RE
+.PP
+\fB\-u\fR, \fB\-\-user\fR\fILOGIN\fR|\fIRANGE\fR
+.RS 4
+现实指定用户的最近登录记录。
+.sp
+The users can be specified by a login name, a numerical user ID, or a
+\fIRANGE\fR
+of users\&. This
+\fIRANGE\fR
+of users can be specified with a min and max values (\fIUID_MIN\-UID_MAX\fR), a max value (\fI\-UID_MAX\fR), or a min value (\fIUID_MIN\-\fR)\&.
+.RE
+.PP
+如果用户从来没有登录过,将会显示
+\fI** 从未登录 **\fR
+而不是端口和时间。
+.PP
+Only the entries for the current users of the system will be displayed\&. Other entries may exist for users that were deleted previously\&.
+.SH "注意"
+.PP
+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 "\fBls \-l\fR" (which can indicate a really big file if you have in
+passwd
+users with a high UID)\&. You can display its real size with "\fBls \-s\fR"\&.
+.SH "文件"
+.PP
+/var/log/lastlog
+.RS 4
+Database times of previous user logins\&.
+.RE
+.SH "CAVEATS"
+.PP
+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\-799)\&.