-
Notifications
You must be signed in to change notification settings - Fork 0
mcarpenter/first
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
User Commands first(1) NAME first - an adaptation of last to display login and logout information about users and terminals SYNOPSIS first [-a] [-n number | -number] [-f filename] [-u] [name | tty]... DESCRIPTION first is identical to last apart from the following changes: Expanded username column from 8 to 16 characters. Full length timestamps for both logon and logoff, including year. Option to display timestamps as seconds from 1970 (UNIX epoch time) for easier processing. Large file support. These changes are intended to make first more convenient for processing long (old) wtmpx files. The first command looks in the /var/adm/wtmpx file, which records all logins and logouts, for information about a user, a terminal, or any group of users and terminals. Argu- ments specify names of users or terminals of interest. If multiple arguments are given, the information applicable to any of the arguments is printed. For example, first root console lists all of root's sessions, as well as all ses- sions on the console terminal. first displays the sessions of the specified users and terminals, most recent first, indicating the times at which the session began, the dura- tion of the session, and the terminal on which the session took place. first also indicates whether the session is con- tinuing or was cut short by a reboot. The pseudo-user reboot logs in when the system is shutdown and when it reboots. Thus, first reboot gives an approximate record of when the operating system instance was shutdown and when it rebooted. This can be used SunOS 5.11 Last change: 09 Mar 2010 1 User Commands first(1) to calculate the availability of the operating system over time. first with no arguments displays a record of all logins and logouts, in reverse order. If first is interrupted, it indicates how far the search has progressed in /var/adm/wtmpx. If interrupted with a quit signal (generated by a CTRL-\), first indicates how far the search has progressed, and then continues the search. OPTIONS The following options are supported: -a Displays the hostname in the last column. -f filename Uses filename as the name of the accounting file instead of /var/adm/wtmpx. -n number|-number Limits the number of entries displayed to that specified by number. These options are identi- cal; the -number option is provided as a transition tool only and is removed in future releases. -u Displays times as seconds from beginning of 1970 (UNIX epoch time). ENVIRONMENT VARIABLES Date and time format is based on locale specified by the LC_ALL, LC_TIME, or LANG environments, in that order of priority. FILES /var/adm/wtmpx accounting file ATTRIBUTES See attributes(5) for descriptions of the following attri- butes: SunOS 5.11 Last change: 09 Mar 2010 2 User Commands first(1) __________________________________________________________________ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | |_____________________________|___________________________________| | Availability | http://github.com/mcarpenter/first| |_____________________________|___________________________________| AUTHOR Martin Carpenter, mcarpenter@free.fr, Copyright 2010. SEE ALSO last(1), utmpx(4), attributes(5) SunOS 5.11 Last change: 09 Mar 2010 3
About
An adaptation of last(1) for Solaris, includes long usernames and full dates with year or UNIX timestamp.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published