lastlog(8)


NAME

   lastlog - reports the most recent login of all users or of a given user

SYNOPSIS

   lastlog [options]

DESCRIPTION

   lastlog formats and prints the contents of the last login log
   /var/log/lastlog file. The login-name, port, and last login time will
   be printed. The default (no flags) causes lastlog entries to be
   printed, sorted by their order in /etc/passwd.

OPTIONS

   The options which apply to the lastlog command are:

   -b, --before DAYS
       Print only lastlog records older than DAYS.

   -h, --help
       Display help message and exit.

   -R, --root CHROOT_DIR
       Apply changes in the CHROOT_DIR directory and use the configuration
       files from the CHROOT_DIR directory.

   -t, --time DAYS
       Print the lastlog records more recent than DAYS.

   -u, --user LOGIN|RANGE
       Print the lastlog record of the specified user(s).

       The users can be specified by a login name, a numerical user ID, or
       a RANGE of users. This RANGE of users can be specified with a min
       and max values (UID_MIN-UID_MAX), a max value (-UID_MAX), or a min
       value (UID_MIN-).

   If the user has never logged in the message ** Never logged in** will
   be displayed instead of the port and time.

   Only the entries for the current users of the system will be displayed.
   Other entries may exist for users that were deleted previously.

NOTE

   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 "ls -l"
   (which can indicate a really big file if you have in passwd users with
   a high UID). You can display its real size with "ls -s".

FILES

   /var/log/lastlog
       Database times of previous user logins.

CAVEATS

   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).


More Linux Commands

manpages/wmemcmp.3.html
wmemcmp(3) - compare two arrays of wide-characters (ManPage)
The wmemcmp() function is the wide-character equivalent of the memcmp(3) function. It compares the n wide-characters starting at s1 and the n wide-characters st

manpages/XQueryBestSize.3.html
XQueryBestSize(3) - determine efficient sizes (Man Page)....
The XQueryBestSize function returns the best or closest size to the specified size. For CursorShape, this is the largest size that can be fully displayed on the

manpages/iconv_close.3.html
iconv_close(3) - deallocate descriptor for character set con
The iconv_close() function deallocates a conversion descriptor cd previously allocated using iconv_open(3). RETURN VALUE When successful, the iconv_close() func

manpages/new_menu_sp.3ncurses.html
new_menu_sp(3ncurses) - curses screen-pointer extension.....
This implementation can be configured to provide a set of functions which improve the ability to manage multiple screens. This feature can be added to any of th

manpages/aa-status.8.html
aa-status(8) display various information about the current A
aa-status will report various aspects of the current state of AppArmor confinement. By default, it displays the same information as if the --verbose argument we

manpages/XOpenDisplay.3.html
XOpenDisplay(3) - connect or disconnect to X server.........
The XOpenDisplay function returns a Display structure that serves as the connection to the X server and that contains all the information about that X server. X

manpages/XtQueryGeometry.3.html
XtQueryGeometry(3) - query the preferred geometry of a child
To discover a childs preferred geometry, the childs parent sets any changes that it intends to make to the childs geometry in the corresponding fields of the in

manpages/Tcl_ForgetImport.3.html
Tcl_ForgetImport(3) - manipulate namespaces - Linux man page
Namespaces are hierarchic naming contexts that can contain commands and variables. They also maintain a list of patterns that describes what commands are export

manpages/XSetWMProperties.3.html
XSetWMProperties(3) - set standard window properties........
The XSetWMProperties convenience function provides a single programming interface for setting those essential window properties that are used for communicating

manpages/error.8.html
error(8) - Postfix error/retry mail delivery agent (ManPage)
The Postfix error(8) delivery agent processes delivery requests from the queue manager. Each request specifies a queue file, a sender address, the reason for no

manpages/resolver.3.html
resolver(3) - resolver routines (Library - Linux man page)
These functions make queries to and interpret the responses from Internet domain name servers. The res_init() function reads the configuration files (see resolv

manpages/menu_requestname.3menu.html
menu_requestname(3menu) - handle printable menu request name
The function menu_request_name returns the printable name of a menu request code. The function menu_request_by_name searches in the name-table for a request wit





We can't live, work or learn in freedom unless the software we use is free.