GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
LASTLOGIN(8) FreeBSD System Manager's Manual LASTLOGIN(8)

lastlogin
indicate last login time of users

lastlogin [--libxo] [-f file] [-rt] [user ...]

The lastlogin utility will list the last login session of each specified user, or for all users by default. Each line of output contains the user name, the tty from which the session was conducted, any hostname, and the start time for the session.

If more than one user is given, the session information for each user is printed in the order given on the command line. Otherwise, information for all users is printed. By default, the entries are sorted by user name.

The lastlogin utility differs from last(1) in that it only prints information regarding the very last login session. The last login database is never turned over or deleted in standard usage.

The following options are available:

Generate output via libxo(3) in a selection of different human and machine readable formats. See xo_parse_args(3) for details on command line arguments.
file
Open last login database file instead of the system-wide database.
Print the entries in reverse sorted order.
Sort the elements by last login time, instead of user name.

/var/log/utx.lastlogin
last login database

last(1), getutxent(3), ac(8), libxo(3), xo_parse_args(3)

John M. Vinopal wrote this program in January 1996 and contributed it to the NetBSD project. Philip Paeps added libxo(3) support in August 2018.
August 28, 2018 FreeBSD 13.1-RELEASE

Search for    or go to Top of page |  Section 8 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.