Penguin
Annotated edit history of last(1) version 1, including all changes. View license author blame.
Rev Author # Line
1 perry 1 LAST,LASTB
2 !!!LAST,LASTB
3 NAME
4 SYNOPSIS
5 DESCRIPTION
6 OPTIONS
7 NOTES
8 FILES
9 AUTHOR
10 SEE ALSO
11 ----
12 !!NAME
13
14
15 last, lastb - show listing of last logged in users
16 !!SYNOPSIS
17
18
19 __last__ [[__-R__] [[__-__''num''] [[ -__n__
20 ''num'' ] [[__-adiox__] [[ -__f__ ''file'' ]
21 [[''name...''] [[''tty...'']__
22 lastb__ [[__-R__] [[__-__''num''] [[ -__n__
23 ''num'' ] [[ -__f__ ''file'' ] [[__-adiox__]
24 [[''name...''] [[''tty...'']
25 !!DESCRIPTION
26
27
28 __Last__ searches back through the file
29 __/var/log/wtmp__ (or the file designated by the
30 __-f__ flag) and displays a list of all users logged in
31 (and out) since that file was created. Names of users and
32 tty's can be given, in which case __last__ will show only
33 those entries matching the arguments. Names of ttys can be
34 abbreviated, thus __last 0__ is the same as __last
35 tty0__.
36
37
38 When __last__ catches a SIGINT signal
39 (generated by the interrupt key, usually control-C) or a
40 SIGQUIT signal (generated by the quit key,
41 usually control-), __last__ will show how far it has
42 searched through the file; in the case of the
43 SIGINT signal __last__ will then
44 terminate.
45
46
47 The pseudo user __reboot__ logs in each time the system
48 is rebooted. Thus __last reboot__ will show a log of all
49 reboots since the log file was created.
50
51
52 __Lastb__ is the same as __last__, except that by
53 default it shows a log of the file __/var/log/btmp__,
54 which contains all the bad login attempts.
55 !!OPTIONS
56
57
58 __-__''num''
59
60
61 This is a count telling __last__ how many lines to
62 show.
63
64
65 __-n__ ''num''
66
67
68 The same.
69
70
71 __-R__
72
73
74 Suppresses the display of the hostname field.
75
76
77 __-a__
78
79
80 Display the hostname in the last column. Useful in
81 combination with the next flag.
82
83
84 __-d__
85
86
87 For non-local logins, Linux stores not only the host name of
88 the remote host but its IP number as well. This option
89 translates the IP number back into a hostname.
90
91
92 __-i__
93
94
95 This option is like __-d__ in that it displays the IP
96 number of the remote host, but it displays the IP number in
97 numbers-and-dots notation.
98
99
100 __-o__
101
102
103 Read an old-type wtmp file (written by linux-libc5
104 applications).
105
106
107 __-x__
108
109
110 Display the system shutdown entries and run level
111 changes.
112 !!NOTES
113
114
115 The files ''wtmp'' and ''btmp'' might not be found.
116 The system only logs information in these files if they are
117 present. This is a local configuration issue. If you want
118 the files to be used, they can be created with a simple
119 touch(1) command (for example, ''touch
120 /var/log/wtmp'').
121 !!FILES
122
123
124 /var/log/wtmp
125 /var/log/btmp
126 !!AUTHOR
127
128
129 Miquel van Smoorenburg, miquels@cistron.nl
130 !!SEE ALSO
131
132
133 shutdown(8), login(1),
134 init(8)
135 ----
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.