Sortix cross-volatile manual
This manual documents Sortix cross-volatile. You can instead view this document in the latest official manual.
NAME
man — display manual pagesSYNOPSIS
man | [-acfhklw] [-C file] [-M path] [-m path] [-S subsection] [[-s] section] name ... |
DESCRIPTION
The man utility displays the manual page entitled name. Pages may be selected according to a specific category (section) or machine architecture (subsection).- -a
- Display all matching manual pages.
- -C file
- Use the specified file instead of the default configuration file. This permits users to configure their own manual environment. See man.conf(5) for a description of the contents of this file.
- -c
-
Copy the manual page to the standard output instead of using less(1) to paginate it. This is done by default if the standard output is not a terminal device.
- -f
- A synonym for whatis(1). It searches for name in manual page names and displays the header lines from all matching pages. The search is case insensitive and matches whole words only.
- -h
- Display only the SYNOPSIS lines of the requested manual pages. Implies -a and -c.
- -k
- A synonym for apropos(1). Instead of name, an expression can be provided using the syntax described in the apropos(1) manual. By default, it displays the header lines of all matching pages.
- -l
- A synonym for mandoc(1). The name arguments are interpreted as filenames. No search is done and file, path, section, subsection, and -w are ignored. This option implies -a.
- -M path
-
Override the list of directories to search for manual pages. The supplied path must be a colon (‘
:
’) separated list of directories. This option also overrides the environment variable MANPATH and any directories specified in the man.conf(5) file. - -m path
-
Augment the list of directories to search for manual pages. The supplied path must be a colon (‘
:
’) separated list of directories. These directories will be searched before those specified using the -M option, the MANPATH environment variable, the man.conf(5) file, or the default directories. - -S subsection
-
Only show pages for the specified machine(1) architecture. subsection is case insensitive.
- [-s] section
-
Only select manuals from the specified section. The currently available sections are:
- 1
- General commands (tools and utilities).
- 2
- System calls and error numbers.
- 3
- Library functions.
- 3p
- perl(1) programmer's reference guide.
- 4
- Device drivers.
- 5
- File formats.
- 6
- Games.
- 7
- Miscellaneous information.
- 8
- System maintenance and operation commands.
- 9
- Kernel internals.
- -w
- List the pathnames of all matching manual pages instead of displaying any of them. If no name is given, list the directories that would be searched.
ENVIRONMENT
- MACHINE
- As some manual pages are intended only for specific architectures, man searches any subdirectories, with the same name as the current architecture, in every directory which it searches. Machine specific areas are checked before general areas. The current machine type may be overridden by setting the environment variable MACHINE to the name of a specific architecture, or with the -S option. MACHINE is case insensitive.
- MANPAGER
- Any non-empty value of the environment variable MANPAGER is used instead of the standard pagination program, less(1). If less(1) is used, the interactive :t command can be used to go to the definitions of various terms, for example command line options, command modifiers, internal commands, environment variables, function names, preprocessor macros, errno(2) values, and some other emphasized words. Some terms may have defining text at more than one place. In that case, the less(1) interactive commands t and T can be used to move to the next and to the previous place providing information about the term last searched for with :t. The -O tag[=term] option documented in the mandoc(1) manual opens a manual page at the definition of a specific term rather than at the beginning.
- MANPATH
-
Override the standard search path which is either specified in man.conf(5) or the default path. The format of MANPATH is a colon (‘
:
’) separated list of directories. Invalid directories are ignored. Overridden by -M, ignored if -l is specified. - PAGER
- Specifies the pagination program to use when MANPAGER is not defined. If neither PAGER nor MANPAGER is defined, less(1) is used.
FILES
- /etc/man.conf
- default man configuration file
EXIT STATUS
The man utility exits 0 on success, and >0 if an error occurs. See mandoc(1) for details.EXAMPLES
Format a page for pasting extracts into an email message — avoid printing any UTF-8 characters, reduce the width to ease quoting in replies, and remove markup:$ man -T ascii -O width=65 pledge | col -b
$ MANPAGER=mupdf man -T pdf lpd