

whereis                      Command                      whereis




Locate source, binary, and manual files

wwhheerreeiiss [-bbmmrrssuu] [-BBMMSS _d_i_r ... -ff] _n_a_m_e ...

The   command  wwhheerreeiiss   locates  source   files,   binary  files
(executables),  and  manual pages  (documentation)  that match  a
given _n_a_m_e.  Prior to searching, wwhheerreeiiss strips  _n_a_m_e of any path
information, extensions, and the ss. prefix.

By default, wwhheerreeiiss searches the following directories:

     SSoouurrcceess        BBiinnaarriieess       MMaannuuaall PPaaggeess
     /usr/src/cmd   /bin           /usr/man/ALL
     /usr/src/games /usr/bin       /usr/man/COHERENT
     /usr/src/local /usr/games     /usr/man/KERNEL
     /usr/src/alien /usr/local     /usr/man/MULTI
     /usr/include   /etc
     /usr/include/sys              /lib
                    /usr/lib


***** Options *****

wwhheerreeiiss recognizes the following command-line options:

-bb  Search only for binary files.

-BB  Use  the  directory  list specified  by  _d_i_r  instead of  the
    default directory list for binary files.

-ff  Terminate the directory list introduced by options -BB, -MM, or
    -SS, and  treat any additional command-line  arguments as file
    names to be searched for.

-mm  Search only for manual pages (documentation files).

-MM  Use  the  directory  list specified  by  _d_i_r  instead of  the
    default directory list for manual pages.

-rr  Search recursively downward from the directories specified by
    _d_i_r or  from the default directories.   This option is useful
    when  the searched  directories contain  sub-directories.  By
    default, wwhheerreeiiss  searches only the  directories specified or
    the default directories.

-ss  Search only for source files.

-SS  Use  the  directory  list specified  by  _d_i_r  instead of  the
    default directory list for source files.

-uu  Search for  ``unusual'' files.  A file is  said to be unusual
    if it  does not have one  entry for each of  the three search
    categories.



COHERENT Lexicon                                           Page 1




whereis                      Command                      whereis



Please note that  if you use options -BB, -SS,  or -MM, you must use
the -ff option to terminate the directory list specified by _d_i_r.

***** Example *****

The following  example finds all  commands in directory  bbiinn that
have either  no corresponding source code in  directory ssrrcc or no
corresponding documentation in directory ddoocc:


               whereis -u -M doc -S src -B bin -f bin/*


***** See Also *****

ccoommmmaannddss, ffiinndd, qqffiinndd, wwhhiicchh

***** Notes *****

wwhheerreeiiss  is  copyright  (c)  1980,1990  by  The  Regents  of  the
University of California.  All rights reserved.

wwhheerreeiiss is distributed as a service to COHERENT customers, as is.
It is not supported by Mark Williams Company.  _C_a_v_e_a_t _u_t_i_l_i_t_o_r.

































COHERENT Lexicon                                           Page 2


