|
Packit |
7cfc04 |
'\" et
|
|
Packit |
7cfc04 |
.TH MAN "1P" 2013 "IEEE/The Open Group" "POSIX Programmer's Manual"
|
|
Packit |
7cfc04 |
.SH PROLOG
|
|
Packit |
7cfc04 |
This manual page is part of the POSIX Programmer's Manual.
|
|
Packit |
7cfc04 |
The Linux implementation of this interface may differ (consult
|
|
Packit |
7cfc04 |
the corresponding Linux manual page for details of Linux behavior),
|
|
Packit |
7cfc04 |
or the interface may not be implemented on Linux.
|
|
Packit |
7cfc04 |
|
|
Packit |
7cfc04 |
.SH NAME
|
|
Packit |
7cfc04 |
man
|
|
Packit |
7cfc04 |
\(em display system documentation
|
|
Packit |
7cfc04 |
.SH SYNOPSIS
|
|
Packit |
7cfc04 |
.LP
|
|
Packit |
7cfc04 |
.nf
|
|
Packit |
7cfc04 |
man \fB[\fR\(mik\fB] \fIname\fR...
|
|
Packit |
7cfc04 |
.fi
|
|
Packit |
7cfc04 |
.SH DESCRIPTION
|
|
Packit |
7cfc04 |
The
|
|
Packit |
7cfc04 |
.IR man
|
|
Packit |
7cfc04 |
utility shall write information about each of the
|
|
Packit |
7cfc04 |
.IR name
|
|
Packit |
7cfc04 |
operands. If
|
|
Packit |
7cfc04 |
.IR name
|
|
Packit |
7cfc04 |
is the name of a standard utility,
|
|
Packit |
7cfc04 |
.IR man
|
|
Packit |
7cfc04 |
at a minimum shall write a message describing the syntax used by the
|
|
Packit |
7cfc04 |
standard utility, its options, and operands. If more information is
|
|
Packit |
7cfc04 |
available, the
|
|
Packit |
7cfc04 |
.IR man
|
|
Packit |
7cfc04 |
utility shall provide it in an implementation-defined manner.
|
|
Packit |
7cfc04 |
.P
|
|
Packit |
7cfc04 |
An implementation may provide information for values of
|
|
Packit |
7cfc04 |
.IR name
|
|
Packit |
7cfc04 |
other than the standard utilities. Standard utilities that are listed
|
|
Packit |
7cfc04 |
as optional and that are not supported by the implementation either
|
|
Packit |
7cfc04 |
shall cause a brief message indicating that fact to be displayed or
|
|
Packit |
7cfc04 |
shall cause a full display of information as described previously.
|
|
Packit |
7cfc04 |
.SH OPTIONS
|
|
Packit |
7cfc04 |
The
|
|
Packit |
7cfc04 |
.IR man
|
|
Packit |
7cfc04 |
utility shall conform to the Base Definitions volume of POSIX.1\(hy2008,
|
|
Packit |
7cfc04 |
.IR "Section 12.2" ", " "Utility Syntax Guidelines".
|
|
Packit |
7cfc04 |
.P
|
|
Packit |
7cfc04 |
The following option shall be supported:
|
|
Packit |
7cfc04 |
.IP "\fB\(mik\fP" 8
|
|
Packit |
7cfc04 |
Interpret
|
|
Packit |
7cfc04 |
.IR name
|
|
Packit |
7cfc04 |
operands as keywords to be used in searching a utilities summary
|
|
Packit |
7cfc04 |
database that contains a brief purpose entry for each standard utility
|
|
Packit |
7cfc04 |
and write lines from the summary database that match any of the
|
|
Packit |
7cfc04 |
keywords. The keyword search shall produce results that are the
|
|
Packit |
7cfc04 |
equivalent of the output of the following command:
|
|
Packit |
7cfc04 |
.RS 8
|
|
Packit |
7cfc04 |
.sp
|
|
Packit |
7cfc04 |
.RS 4
|
|
Packit |
7cfc04 |
.nf
|
|
Packit |
7cfc04 |
\fB
|
|
Packit |
7cfc04 |
grep \(miEi '
|
|
Packit |
7cfc04 |
\fIname
|
|
Packit |
7cfc04 |
name\fP
|
|
Packit |
7cfc04 |
\&...
|
|
Packit |
7cfc04 |
\&' \fIsummary-database\fR
|
|
Packit |
7cfc04 |
.fi \fR
|
|
Packit |
7cfc04 |
.P
|
|
Packit |
7cfc04 |
.RE
|
|
Packit |
7cfc04 |
.P
|
|
Packit |
7cfc04 |
This assumes that the
|
|
Packit |
7cfc04 |
.IR summary-database
|
|
Packit |
7cfc04 |
is a text file with a single entry per line; this organization is not
|
|
Packit |
7cfc04 |
required and the example using
|
|
Packit |
7cfc04 |
.IR grep
|
|
Packit |
7cfc04 |
.BR \(miEi
|
|
Packit |
7cfc04 |
is merely illustrative of the type of search intended. The purpose
|
|
Packit |
7cfc04 |
entry to be included in the database shall consist of a terse
|
|
Packit |
7cfc04 |
description of the purpose of the utility.
|
|
Packit |
7cfc04 |
.RE
|
|
Packit |
7cfc04 |
.SH OPERANDS
|
|
Packit |
7cfc04 |
The following operand shall be supported:
|
|
Packit |
7cfc04 |
.IP "\fIname\fR" 10
|
|
Packit |
7cfc04 |
A keyword or the name of a standard utility. When
|
|
Packit |
7cfc04 |
.BR \(mik
|
|
Packit |
7cfc04 |
is not specified and
|
|
Packit |
7cfc04 |
.IR name
|
|
Packit |
7cfc04 |
does not represent one of the standard utilities, the results are
|
|
Packit |
7cfc04 |
unspecified.
|
|
Packit |
7cfc04 |
.SH STDIN
|
|
Packit |
7cfc04 |
Not used.
|
|
Packit |
7cfc04 |
.SH "INPUT FILES"
|
|
Packit |
7cfc04 |
None.
|
|
Packit |
7cfc04 |
.SH "ENVIRONMENT VARIABLES"
|
|
Packit |
7cfc04 |
The following environment variables shall affect the execution of
|
|
Packit |
7cfc04 |
.IR man :
|
|
Packit |
7cfc04 |
.IP "\fILANG\fP" 10
|
|
Packit |
7cfc04 |
Provide a default value for the internationalization variables that are
|
|
Packit |
7cfc04 |
unset or null. (See the Base Definitions volume of POSIX.1\(hy2008,
|
|
Packit |
7cfc04 |
.IR "Section 8.2" ", " "Internationalization Variables"
|
|
Packit |
7cfc04 |
for the precedence of internationalization variables used to determine
|
|
Packit |
7cfc04 |
the values of locale categories.)
|
|
Packit |
7cfc04 |
.IP "\fILC_ALL\fP" 10
|
|
Packit |
7cfc04 |
If set to a non-empty string value, override the values of all the
|
|
Packit |
7cfc04 |
other internationalization variables.
|
|
Packit |
7cfc04 |
.IP "\fILC_CTYPE\fP" 10
|
|
Packit |
7cfc04 |
Determine the locale for the interpretation of sequences of bytes of
|
|
Packit |
7cfc04 |
text data as characters (for example, single-byte as opposed to
|
|
Packit |
7cfc04 |
multi-byte characters in arguments and in the summary database). The
|
|
Packit |
7cfc04 |
value of
|
|
Packit |
7cfc04 |
.IR LC_CTYPE
|
|
Packit |
7cfc04 |
need not affect the format of the information written about the
|
|
Packit |
7cfc04 |
.IR name
|
|
Packit |
7cfc04 |
operands.
|
|
Packit |
7cfc04 |
.IP "\fILC_MESSAGES\fP" 10
|
|
Packit |
7cfc04 |
.br
|
|
Packit |
7cfc04 |
Determine the locale that should be used to affect the format and
|
|
Packit |
7cfc04 |
contents of diagnostic messages written to standard error and
|
|
Packit |
7cfc04 |
informative messages written to standard output.
|
|
Packit |
7cfc04 |
.IP "\fINLSPATH\fP" 10
|
|
Packit |
7cfc04 |
Determine the location of message catalogs for the processing of
|
|
Packit |
7cfc04 |
.IR LC_MESSAGES .
|
|
Packit |
7cfc04 |
.IP "\fIPAGER\fP" 10
|
|
Packit |
7cfc04 |
Determine an output filtering command for writing the output to a
|
|
Packit |
7cfc04 |
terminal. Any string acceptable as a
|
|
Packit |
7cfc04 |
.IR command_string
|
|
Packit |
7cfc04 |
operand to the
|
|
Packit |
7cfc04 |
.IR sh
|
|
Packit |
7cfc04 |
.BR \(mic
|
|
Packit |
7cfc04 |
command shall be valid. When standard output is a terminal device, the
|
|
Packit |
7cfc04 |
reference page output shall be piped through the command. If the
|
|
Packit |
7cfc04 |
.IR PAGER
|
|
Packit |
7cfc04 |
variable is null or not set, the command shall be either
|
|
Packit |
7cfc04 |
.IR more
|
|
Packit |
7cfc04 |
or another paginator utility documented in the system documentation.
|
|
Packit |
7cfc04 |
.SH "ASYNCHRONOUS EVENTS"
|
|
Packit |
7cfc04 |
Default.
|
|
Packit |
7cfc04 |
.SH STDOUT
|
|
Packit |
7cfc04 |
The
|
|
Packit |
7cfc04 |
.IR man
|
|
Packit |
7cfc04 |
utility shall write text describing the syntax of the utility
|
|
Packit |
7cfc04 |
.IR name ,
|
|
Packit |
7cfc04 |
its options and its operands, or, when
|
|
Packit |
7cfc04 |
.BR \(mik
|
|
Packit |
7cfc04 |
is specified, lines from the summary database. The format of this text
|
|
Packit |
7cfc04 |
is implementation-defined.
|
|
Packit |
7cfc04 |
.SH STDERR
|
|
Packit |
7cfc04 |
The standard error shall be used for diagnostic messages, and may also
|
|
Packit |
7cfc04 |
be used for informational messages of unspecified format.
|
|
Packit |
7cfc04 |
.SH "OUTPUT FILES"
|
|
Packit |
7cfc04 |
None.
|
|
Packit |
7cfc04 |
.SH "EXTENDED DESCRIPTION"
|
|
Packit |
7cfc04 |
None.
|
|
Packit |
7cfc04 |
.SH "EXIT STATUS"
|
|
Packit |
7cfc04 |
The following exit values shall be returned:
|
|
Packit |
7cfc04 |
.IP "\00" 6
|
|
Packit |
7cfc04 |
Successful completion.
|
|
Packit |
7cfc04 |
.IP >0 6
|
|
Packit |
7cfc04 |
An error occurred.
|
|
Packit |
7cfc04 |
.SH "CONSEQUENCES OF ERRORS"
|
|
Packit |
7cfc04 |
Default.
|
|
Packit |
7cfc04 |
.LP
|
|
Packit |
7cfc04 |
.IR "The following sections are informative."
|
|
Packit |
7cfc04 |
.SH "APPLICATION USAGE"
|
|
Packit |
7cfc04 |
None.
|
|
Packit |
7cfc04 |
.SH EXAMPLES
|
|
Packit |
7cfc04 |
None.
|
|
Packit |
7cfc04 |
.SH RATIONALE
|
|
Packit |
7cfc04 |
It is recognized that the
|
|
Packit |
7cfc04 |
.IR man
|
|
Packit |
7cfc04 |
utility is only of minimal usefulness as specified. The opinion of the
|
|
Packit |
7cfc04 |
standard developers was strongly divided as to how much or how little
|
|
Packit |
7cfc04 |
information
|
|
Packit |
7cfc04 |
.IR man
|
|
Packit |
7cfc04 |
should be required to provide. They considered, however, that the
|
|
Packit |
7cfc04 |
provision of some portable way of accessing documentation would aid
|
|
Packit |
7cfc04 |
user portability. The arguments against a fuller specification were:
|
|
Packit |
7cfc04 |
.IP " *" 4
|
|
Packit |
7cfc04 |
Large quantities of documentation should not be required on a system
|
|
Packit |
7cfc04 |
that does not have excess disk space.
|
|
Packit |
7cfc04 |
.IP " *" 4
|
|
Packit |
7cfc04 |
The current manual system does not present information in a manner that
|
|
Packit |
7cfc04 |
greatly aids user portability.
|
|
Packit |
7cfc04 |
.IP " *" 4
|
|
Packit |
7cfc04 |
A ``better help system'' is currently an area in which vendors feel
|
|
Packit |
7cfc04 |
that they can add value to their POSIX implementations.
|
|
Packit |
7cfc04 |
.P
|
|
Packit |
7cfc04 |
The
|
|
Packit |
7cfc04 |
.BR \(mif
|
|
Packit |
7cfc04 |
option was considered, but due to implementation differences, it was
|
|
Packit |
7cfc04 |
not included in this volume of POSIX.1\(hy2008.
|
|
Packit |
7cfc04 |
.P
|
|
Packit |
7cfc04 |
The description was changed to be more specific about what has to be
|
|
Packit |
7cfc04 |
displayed for a utility. The standard developers considered it
|
|
Packit |
7cfc04 |
insufficient to allow a display of only the synopsis without giving a
|
|
Packit |
7cfc04 |
short description of what each option and operand does.
|
|
Packit |
7cfc04 |
.P
|
|
Packit |
7cfc04 |
The ``purpose'' entry to be included in the database can be similar to
|
|
Packit |
7cfc04 |
the section title (less the numeric prefix) from this volume of POSIX.1\(hy2008 for each utility.
|
|
Packit |
7cfc04 |
These titles are similar to those used in historical systems for this
|
|
Packit |
7cfc04 |
purpose.
|
|
Packit |
7cfc04 |
.P
|
|
Packit |
7cfc04 |
See
|
|
Packit |
7cfc04 |
.IR mailx
|
|
Packit |
7cfc04 |
for rationale concerning the default paginator.
|
|
Packit |
7cfc04 |
.P
|
|
Packit |
7cfc04 |
The caveat in the
|
|
Packit |
7cfc04 |
.IR LC_CTYPE
|
|
Packit |
7cfc04 |
description was added because it is not a requirement that an
|
|
Packit |
7cfc04 |
implementation provide reference pages for all of its supported locales
|
|
Packit |
7cfc04 |
on each system; changing
|
|
Packit |
7cfc04 |
.IR LC_CTYPE
|
|
Packit |
7cfc04 |
does not necessarily translate the reference page into another
|
|
Packit |
7cfc04 |
language. This is equivalent to the current state of
|
|
Packit |
7cfc04 |
.IR LC_MESSAGES
|
|
Packit |
7cfc04 |
in POSIX.1\(hy2008\(emlocale-specific messages are not yet a requirement.
|
|
Packit |
7cfc04 |
.P
|
|
Packit |
7cfc04 |
The historical
|
|
Packit |
7cfc04 |
.IR MANPATH
|
|
Packit |
7cfc04 |
variable is not included in POSIX because no attempt is made to specify
|
|
Packit |
7cfc04 |
naming conventions for reference page files, nor even to mandate that
|
|
Packit |
7cfc04 |
they are files at all. On some implementations they could be a true
|
|
Packit |
7cfc04 |
database, a hypertext file, or even fixed strings within the
|
|
Packit |
7cfc04 |
.IR man
|
|
Packit |
7cfc04 |
executable. The standard developers considered the portability of
|
|
Packit |
7cfc04 |
reference pages to be outside their scope of work. However, users
|
|
Packit |
7cfc04 |
should be aware that
|
|
Packit |
7cfc04 |
.IR MANPATH
|
|
Packit |
7cfc04 |
is implemented on a number of historical systems and that it can be
|
|
Packit |
7cfc04 |
used to tailor the search pattern for reference pages from the various
|
|
Packit |
7cfc04 |
categories (utilities, functions, file formats, and so on) when the
|
|
Packit |
7cfc04 |
system administrator reveals the location and conventions for reference
|
|
Packit |
7cfc04 |
pages on the system.
|
|
Packit |
7cfc04 |
.P
|
|
Packit |
7cfc04 |
The keyword search can rely on at least the text of the section titles
|
|
Packit |
7cfc04 |
from these utility descriptions, and the implementation may add more
|
|
Packit |
7cfc04 |
keywords. The term ``section titles'' refers to the strings such as:
|
|
Packit |
7cfc04 |
.sp
|
|
Packit |
7cfc04 |
.RS 4
|
|
Packit |
7cfc04 |
.nf
|
|
Packit |
7cfc04 |
\fB
|
|
Packit |
7cfc04 |
man \(em Display system documentation
|
|
Packit |
7cfc04 |
ps \(em Report process status
|
|
Packit |
7cfc04 |
.fi \fR
|
|
Packit |
7cfc04 |
.P
|
|
Packit |
7cfc04 |
.RE
|
|
Packit |
7cfc04 |
.SH "FUTURE DIRECTIONS"
|
|
Packit |
7cfc04 |
None.
|
|
Packit |
7cfc04 |
.SH "SEE ALSO"
|
|
Packit |
7cfc04 |
.IR "\fImore\fR\^"
|
|
Packit |
7cfc04 |
.P
|
|
Packit |
7cfc04 |
The Base Definitions volume of POSIX.1\(hy2008,
|
|
Packit |
7cfc04 |
.IR "Chapter 8" ", " "Environment Variables",
|
|
Packit |
7cfc04 |
.IR "Section 12.2" ", " "Utility Syntax Guidelines"
|
|
Packit |
7cfc04 |
.SH COPYRIGHT
|
|
Packit |
7cfc04 |
Portions of this text are reprinted and reproduced in electronic form
|
|
Packit |
7cfc04 |
from IEEE Std 1003.1, 2013 Edition, Standard for Information Technology
|
|
Packit |
7cfc04 |
-- Portable Operating System Interface (POSIX), The Open Group Base
|
|
Packit |
7cfc04 |
Specifications Issue 7, Copyright (C) 2013 by the Institute of
|
|
Packit |
7cfc04 |
Electrical and Electronics Engineers, Inc and The Open Group.
|
|
Packit |
7cfc04 |
(This is POSIX.1-2008 with the 2013 Technical Corrigendum 1 applied.) In the
|
|
Packit |
7cfc04 |
event of any discrepancy between this version and the original IEEE and
|
|
Packit |
7cfc04 |
The Open Group Standard, the original IEEE and The Open Group Standard
|
|
Packit |
7cfc04 |
is the referee document. The original Standard can be obtained online at
|
|
Packit |
7cfc04 |
http://www.unix.org/online.html .
|
|
Packit |
7cfc04 |
|
|
Packit |
7cfc04 |
Any typographical or formatting errors that appear
|
|
Packit |
7cfc04 |
in this page are most likely
|
|
Packit |
7cfc04 |
to have been introduced during the conversion of the source files to
|
|
Packit |
7cfc04 |
man page format. To report such errors, see
|
|
Packit |
7cfc04 |
https://www.kernel.org/doc/man-pages/reporting_bugs.html .
|