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


   lastlog [options]


   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.


   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.


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


       Database times of previous user logins.


   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

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

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

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

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

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

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

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

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

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

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

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

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.