BSD 4_3_Reno development
[unix-history] / usr / share / man / cat1 / finger.0
FINGER(1) UNIX Reference Manual FINGER(1)
N\bNA\bAM\bME\bE
f\bfi\bin\bng\bge\ber\br - user information lookup program
S\bSY\bYN\bNO\bOP\bPS\bSI\bIS\bS
f\bfi\bin\bng\bge\ber\br [-\b-l\blm\bms\bsp\bp] [_\bu_\bs_\be_\br [@host] ...]
D\bDE\bES\bSC\bCR\bRI\bIP\bPT\bTI\bIO\bON\bN
The f\bfi\bin\bng\bge\ber\br command has two basic output formats providing essentially the
same information.
Options are:
-\b-s\bs F\bFi\bin\bng\bge\ber\br displays the user's login name, real name, terminal name and
write status (as a ``*'' after the terminal name if write permis-
sion is denied), idle time, login time, office location and office
phone number.
Idle time is in minutes if it is a single integer, hours and
minutes if a ``:'' is present, or days if a ``d'' is present. Lo-
gin time is displayed as month, day, hours and minutes, unless more
than six months ago, in which case the year is displayed rather
than the hours and minutes.
Unknown devices as well as nonexistent idle and login times are
displayed as single asterisks.
-\b-l\bl Produces a multi-line format displaying all of the information
described for the -\b-s\bs option as well as the user's home directory,
home phone number, login shell, and the contents of the files
``._\bp_\bl_\ba_\bn'' and ``._\bp_\br_\bo_\bj_\be_\bc_\bt'' from the user's home directory.
If idle time is at least a minute and less than a day, it is
presented in the form ``hh:mm''. Idle times greater than a day are
presented as ``d day[s]hh:mm''.
Phone numbers specified as eleven digits are printed as ``+N-NNN-
NNN-NNNN''. Numbers specified as ten or seven digits are printed
as the appropriate subset of that string. Numbers specified as
five digits are printed as ``xN-NNNN''.
If write permission is denied to the device, the phrase ``(messages
off)'' is appended to the line containing the device name. One en-
try per user is displayed with the -\b-l\bl option; if a user is logged
on multiple times, terminal information is repeated once per login.
-\b-p\bp Prevents the -\b-l\bl option of f\bfi\bin\bng\bge\ber\br from displaying the contents of
the ``._\bp_\bl_\ba_\bn'' and ``._\bp_\br_\bo_\bj_\be_\bc_\bt'' files.
Note that some fields may be missing, in either format, if informa-
tion is not available for them.
-\b-m\bm Prevent matching of _\bu_\bs_\be_\br names. _\bU_\bs_\be_\br is usually a login name; how-
ever, matching will also be done on the users' real names, unless
the -\b-m\bm option is supplied. All name matching performed by f\bfi\bin\bng\bge\ber\br
is case insensitive.
If no options are specified, f\bfi\bin\bng\bge\ber\br defaults to the -\b-l\bl style output if
operands are provided, otherwise to the -\b-s\bs style.
If no arguments are specified, f\bfi\bin\bng\bge\ber\br will print an entry for each user
currently logged into the system.
F\bFi\bin\bng\bge\ber\br may be used to look up users on a remote machine. The format is
to specify a _\bu_\bs_\be_\br as ``user@host'', or ``@host'', where the default out-
put format for the former is the -\b-l\bl style, and the default output format
for the latter is the -\b-s\bs style. The -\b-l\bl option is the only option that
may be passed to a remote machine.
S\bSE\bEE\bE A\bAL\bLS\bSO\bO
chpass(1), w(1), who(1), getpwent(3)
H\bHI\bIS\bST\bTO\bOR\bRY\bY
F\bFi\bin\bng\bge\ber\br appeared in 3 BSD.