last.1 (91541) | last.1 (95124) |
---|---|
1.\" Copyright (c) 1980, 1990, 1993 2.\" The Regents of the University of California. All rights reserved. 3.\" 4.\" Redistribution and use in source and binary forms, with or without 5.\" modification, are permitted provided that the following conditions 6.\" are met: 7.\" 1. Redistributions of source code must retain the above copyright 8.\" notice, this list of conditions and the following disclaimer. --- 16 unchanged lines hidden (view full) --- 25.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 26.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 27.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 28.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30.\" SUCH DAMAGE. 31.\" 32.\" @(#)last.1 8.1 (Berkeley) 6/6/93 | 1.\" Copyright (c) 1980, 1990, 1993 2.\" The Regents of the University of California. All rights reserved. 3.\" 4.\" Redistribution and use in source and binary forms, with or without 5.\" modification, are permitted provided that the following conditions 6.\" are met: 7.\" 1. Redistributions of source code must retain the above copyright 8.\" notice, this list of conditions and the following disclaimer. --- 16 unchanged lines hidden (view full) --- 25.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 26.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 27.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 28.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30.\" SUCH DAMAGE. 31.\" 32.\" @(#)last.1 8.1 (Berkeley) 6/6/93 |
33.\" $FreeBSD: head/usr.bin/last/last.1 91541 2002-03-01 21:12:19Z iedowse $ | 33.\" $FreeBSD: head/usr.bin/last/last.1 95124 2002-04-20 12:18:28Z charnier $ |
34.\" 35.Dd March 1, 2002 36.Dt LAST 1 37.Os 38.Sh NAME 39.Nm last 40.Nd indicate last logins of users and ttys 41.Sh SYNOPSIS --- 11 unchanged lines hidden (view full) --- 53.Oc 54.Op Fl f Ar file 55.Op Fl h Ar host 56.Op Fl s 57.Op Fl t Ar tty 58.Op Fl w 59.Op Ar user ... 60.Sh DESCRIPTION | 34.\" 35.Dd March 1, 2002 36.Dt LAST 1 37.Os 38.Sh NAME 39.Nm last 40.Nd indicate last logins of users and ttys 41.Sh SYNOPSIS --- 11 unchanged lines hidden (view full) --- 53.Oc 54.Op Fl f Ar file 55.Op Fl h Ar host 56.Op Fl s 57.Op Fl t Ar tty 58.Op Fl w 59.Op Ar user ... 60.Sh DESCRIPTION |
61.Nm Last 62will either list the sessions of specified | 61The 62.Nm 63utility will either list the sessions of specified |
63.Ar users , 64.Ar ttys , 65and 66.Ar hosts , 67in reverse time order, 68or list the users logged in at a specified date and time. 69Each line of output contains 70the user name, the tty from which the session was conducted, any 71hostname, the start and stop times for the session, and the duration 72of the session. 73If the session is still continuing or was cut short by 74a crash or shutdown, 75.Nm 76will so indicate. 77.Pp | 64.Ar users , 65.Ar ttys , 66and 67.Ar hosts , 68in reverse time order, 69or list the users logged in at a specified date and time. 70Each line of output contains 71the user name, the tty from which the session was conducted, any 72hostname, the start and stop times for the session, and the duration 73of the session. 74If the session is still continuing or was cut short by 75a crash or shutdown, 76.Nm 77will so indicate. 78.Pp |
79The following options are available: |
|
78.Bl -tag -width indent-two 79.It Fl Ar n 80Limits the report to 81.Ar n 82lines. 83.It Fl d Ar date 84Specify the snapshot date and time. 85All users logged in at the snapshot date and time will --- 49 unchanged lines hidden (view full) --- 135and 136.Ar YY 137letter pairs are not specified, the values default to the current 138year. 139If the 140.Ar SS 141letter pair is not specified, the value defaults to 0. 142.It Fl f Ar file | 80.Bl -tag -width indent-two 81.It Fl Ar n 82Limits the report to 83.Ar n 84lines. 85.It Fl d Ar date 86Specify the snapshot date and time. 87All users logged in at the snapshot date and time will --- 49 unchanged lines hidden (view full) --- 137and 138.Ar YY 139letter pairs are not specified, the values default to the current 140year. 141If the 142.Ar SS 143letter pair is not specified, the value defaults to 0. 144.It Fl f Ar file |
143.Nm Last 144reads the file | 145Read the file |
145.Ar file 146instead of the default, 147.Pa /var/log/wtmp . 148.It Fl h Ar host 149.Ar Host 150names may be names or internet numbers. 151.It Fl s 152Report the duration of the login session in seconds, instead of the --- 52 unchanged lines hidden (view full) --- 205.Xr ac 8 206.Sh BUGS 207If a login shell should terminate abnormally for some reason, it is likely 208that a logout record won't be written to the wtmp file. 209In this case, 210.Nm 211will indicate the logout time as "shutdown". 212.Sh HISTORY | 146.Ar file 147instead of the default, 148.Pa /var/log/wtmp . 149.It Fl h Ar host 150.Ar Host 151names may be names or internet numbers. 152.It Fl s 153Report the duration of the login session in seconds, instead of the --- 52 unchanged lines hidden (view full) --- 206.Xr ac 8 207.Sh BUGS 208If a login shell should terminate abnormally for some reason, it is likely 209that a logout record won't be written to the wtmp file. 210In this case, 211.Nm 212will indicate the logout time as "shutdown". 213.Sh HISTORY |
213.Nm Last 214appeared in | 214A 215.Nm 216utility last appeared in |
215.Bx 3.0 . | 217.Bx 3.0 . |