utility displays a list of all users currently logged on, showing for
each user the login name, tty name, the date and time of login, and
hostname if not local.
The options are as follows:
Write column headings above the regular output.
Only print information about the current terminal.
This is the
way of saying
List only the names and the number of users currently logged on.
When this option is used, all other options are ignored.
Print a character after the user name indicating the state of the
if the terminal is writable;
if it is not;
if a bad line is encountered.
Print the idle time for each user.
Returns the invoker's real user name.
gathers information from the file
may be specified which is usually
depending on site policy as
can grow quite large and daily versions may or may not
be kept around after compression by
file contains a record of every login, logout,
crash, shutdown and date change
was last truncated or
is being used as the file, the user name may be empty
or one of the special characters
Logouts produce an output line without any user name.
For more information on the special characters, see