Apropos (Unix)
   HOME

TheInfoList



OR:

In
computing Computing is any goal-oriented activity requiring, benefiting from, or creating computer, computing machinery. It includes the study and experimentation of algorithmic processes, and the development of both computer hardware, hardware and softw ...
, is a command to search the
man page A man page (short for manual page) is a form of software documentation found on Unix and Unix-like operating systems. Topics covered include programs, system libraries, system calls, and sometimes local system details. The local host administr ...
files in
Unix Unix (, ; trademarked as UNIX) is a family of multitasking, multi-user computer operating systems that derive from the original AT&T Unix, whose development started in 1969 at the Bell Labs research center by Ken Thompson, Dennis Ritchie, a ...
and
Unix-like A Unix-like (sometimes referred to as UN*X, *nix or *NIX) operating system is one that behaves in a manner similar to a Unix system, although not necessarily conforming to or being certified to any version of the Single UNIX Specification. A Uni ...
operating systems. Apropos takes its name from the French "
à propos À, à ( a-grave) is a letter of the Catalan, Emilian-Romagnol, French, Italian, Maltese, Occitan, Portuguese, Sardinian, Scottish Gaelic, Vietnamese, and Welsh languages consisting of the letter A of the ISO basic Latin alphabet and a ...
" (Latin "ad prōpositum") which means ''about''. It is particularly useful when searching for commands without knowing their exact names.


Behavior

Often a wrapper for the command, the apropos command is used to search the "name" sections of all manual pages for the specified string or strings (called ''keywords''). The output is a list of all manual pages containing the search term (case insensitive) in their name or description. This is often useful if one knows the action that is desired, but does not remember the exact command or page name. usually searches in a precompiled database that is shared with , a command for obtaining the brief description of a specific command whose exact name is already known.


Sample usage

The following example demonstrates the output of the command: $ apropos mount free (1) - Display amount of free and used memory in the system mklost+found (8) - create a lost+found directory on a mounted Linux second extended file system mount (8) - mount a file system mountpoint (1) - see if a directory is a mountpoint ntfsmount (8) - Read/Write userspace NTFS driver. sleep (1) - delay for a specified amount of time switch_root (8) - switch to another filesystem as the root of the mount tree. umount (8) - unmount file systems In this example, is used to search for the keyword "mount", and returns the indicated man pages that include the term "mount". The following example demonstrates the output of the command with an regexp keyword (abc.n) and a regular keyword: $ apropos abc.n xzless XTestGrabControl (3) - XTest extension functions xzless (1) - view xz or lzma compressed (text) files In this example, is used to search for the keywords (with a regular expression) "abc.n" and xzless, and returns the indicated man pages that include the keywords.


Related utilities

is a command for obtaining the brief description of a specific command whose exact name is already known. It uses the same database as does. On systems with
mandoc mandoc (historically called mdocml) is a utility used for formatting man pages in BSD Operating Systems (e.g. NetBSD), specifically those written in the ''mdoc'' and ''man'' macro languages. Unlike the groff and older troff and nroff tools ...
, it is a wrapper for (search by name only). $ whatis whatis whatis(1) - search the whatis database for complete words is a command for indexing all on-disk manuals into a database that and can read from. It first appeared in the
2BSD The history of the Berkeley Software Distribution began in the 1970s when University of California, Berkeley received a copy of Unix. Professors and students at the university began adding software to the operating system and released it as BSD to ...
of 1979, but has since been rewritten multiple times in different implementations of . is a command that performs the same function in man-db. The database is traditionally plain text, but man-db, the implementation found on many
Linux distribution A Linux distribution, often abbreviated as distro, is an operating system that includes the Linux kernel for its kernel functionality. Although the name does not imply product distribution per se, a distro—if distributed on its own—is oft ...
s, use a
Berkeley DB Berkeley DB (BDB) is an embedded database software library for key/value data, historically significant in open-source software. Berkeley DB is written in C with API bindings for many other programming languages. BDB stores arbitrary key/data ...
instead. The
mandoc mandoc (historically called mdocml) is a utility used for formatting man pages in BSD Operating Systems (e.g. NetBSD), specifically those written in the ''mdoc'' and ''man'' macro languages. Unlike the groff and older troff and nroff tools ...
implementation used on many BSD distributions likewise has its own innovations on the format.


See also

*
Man page A man page (short for manual page) is a form of software documentation found on Unix and Unix-like operating systems. Topics covered include programs, system libraries, system calls, and sometimes local system details. The local host administr ...
* whatis


References


External links

* * *

at the LinuxQuestions.org wiki {{Unix commands Unix text processing utilities