Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ whereis(1) — OSF/1 SILVER Baselevel 4 rev36

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

apropos(1)

catman(1)

find(1)

man(1)

which(1)

whereis(1)  —  Commands

OSF

NAME

whereis − Locates source, binary, and reference page files for programs

SYNOPSIS

whereis [-bmsu] [-BMS directory ...  -f] program ... 

The whereis command locates source, binary, and reference page files for the specified program program. 

FLAGS

The following flags can be used in combination. 

Use the -B, -M, and -S flags to specify directories other than the defaults to be searched by the whereis command.  Pathnames given with these flags must be absolute, not relative. 

-bSearches for an executable program. 

-B directory
Specifies binary directories.

-f program ...
Delimits a -B, -M, or -S list. 

-mSearches for manual pages for a program. 

-M directory
Specifies reference directories.

-sSearches for the sources of a program. 

-S directory
Specifies source directories.

-uUsed with other flags to indicate when there is no file for program in the default or specified directory or directories (source, binary, or reference page). 

DESCRIPTION

The whereis command matches the specified name against files in the specified (or default) directories and displays the directories in which matching files exist, if any.  Use the flags to limit the search to one or two types of directories (source, binary, or reference), and to specify directories other than the default directories.  If you do not specify any flags, whereis looks in the default directories for all three types. 

When searching, whereis ignores the filename prefix s. (for example, s.file) and the dot suffix (for example, file.c). 

EXAMPLES

     1.To find files matching cat in the default source, binary, and reference directories, enter:

whereis cat

     2.To search for reference pages for app13 in the directory usr/local/man, enter:

whereis -M /usr/local/man app13

     3.To find the programs in /usr/bin that do not have reference pages in /usr/share/man1, do not have source files in /usr/src/cmd, and do not have binary files in the default binary directories, enter:

whereis -u -M /usr/share/man1 -S /usr/src/cmd -f /usr/bin/∗

     4.To find out which files in the current directory do not have reference pages in the default reference directories, enter:

whereis -m -u ∗

FILES

/usr/share/man/∗Default reference page directories. 

RELATED INFORMATION

Commands:  apropos(1), catman(1), find(1), man(1), which(1). 

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026