summaryrefslogtreecommitdiffstats
path: root/login-utils/last.1
diff options
context:
space:
mode:
Diffstat (limited to 'login-utils/last.1')
-rw-r--r--login-utils/last.138
1 files changed, 17 insertions, 21 deletions
diff --git a/login-utils/last.1 b/login-utils/last.1
index 8eb5b82f9..de818105d 100644
--- a/login-utils/last.1
+++ b/login-utils/last.1
@@ -20,13 +20,13 @@ last, lastb \- show listing of last logged in users
.SH SYNOPSIS
.B last
.RI [ options ]
-.RI [ username... ]
-.RI [ tty... ]
+.RI [ username ...]
+.RI [ tty ...]
.br
.B lastb
.RI [ options ]
-.RI [ username... ]
-.RI [ tty... ]
+.RI [ username ...]
+.RI [ tty ...]
.SH DESCRIPTION
.B last
searches back through the file
@@ -34,22 +34,18 @@ searches back through the file
(or the file designated by the
.B \-f
option) and displays a list of all users logged in (and out) since that
-file was created.
-.I Names
-of users and
-.IR tty 's
+file was created. One or more
+.IR usernames " and/or " ttys
can be given, in which case
.B last
-will show only those entries matching the arguments. Names of
+will show only the entries matching those arguments. Names of
.I ttys
can be abbreviated, thus
.B last 0
is the same as
.BR "last tty0" .
.PP
-When
-.B last
-catches a \s-2SIGINT\s0 signal (generated by the interrupt key, usually
+When catching a \s-2SIGINT\s0 signal (generated by the interrupt key, usually
control-C) or a \s-2SIGQUIT\s0 signal,
.B last
will show how far it has searched through the file; in the case of the
@@ -74,11 +70,11 @@ which contains all the bad login attempts.
\fB\-f\fR, \fB\-\-file\fR \fIfile\fR
Tell
.B last
-to use a specific file instead of
+to use a specific \fIfile\fR instead of
.BR /var/log/wtmp .
The
-.BI \-\-file " file"
-can be specified multiple times, and all of the defined files will be
+.B \-\-file
+option can be given multiple times, and all of the specified files will be
processed.
.TP
\fB\-\fInumber\fR
@@ -100,10 +96,10 @@ Display the state of logins until the specified
.IR time .
.TP
\fB\-p\fR, \fB\-\-present\fR \fItime\fR
-Display users who were present at the specified time. This option is
-similar with
-.BR \-\-since " and " \-\-until ,
-without printing any other lines than the matching sessions.
+Display the users who were present at the specified time. This is
+like using the options
+.BR \-\-since " and " \-\-until
+together with the same \fItime\fR.
.TP
\fB\-\-time\-format\fR \fIformat\fR
Define output timestamp
@@ -155,9 +151,9 @@ Display full user and domain names in the output.
\fB\-x\fR, \fB\-\-system\fR
Display the system shutdown entries and run level changes.
.SH TIME FORMATS
-The options that take
+The options that take the
.I time
-argument will understand the following formats:
+argument understand the following formats:
.TS
left l2 l.
YYYYMMDDhhmmss