which man page on OpenBSD

Man page or keyword search:  
man Server   11362 pages
apropos Keyword Search (all sections)
Output format
OpenBSD logo
[printable version]

WHICH(1)		   OpenBSD Reference Manual		      WHICH(1)

NAME
     which - locate a program file (or files) in the path

SYNOPSIS
     which [-a] name ...

DESCRIPTION
     which takes a list of names and looks for the files which would be
     executed had these names been given as commands.  Each argument is
     searched for along the user's path.

     If the -a flag is given, which will return a list of all matches instead
     of just the first match.

ENVIRONMENT
     The following environment variables affect the execution of which:

     PATH  A colon-separated list of directories in which to find executables.
	   If PATH is not set, and the given name is not a fully qualified or
	   relative pathname, which will fail.

EXIT STATUS
     The which utility exits with one of the following values:

	   0	   All names were successfully resolved.
	   1	   Some names were resolved but not all.
	   2	   No names were resolved.

DIAGNOSTICS
     A diagnostic is given if an executable file with the argument name was
     not found in the path.

SEE ALSO
     csh(1), find(1), locate(1), whereis(1), environ(7)

STANDARDS
     which also exists as a built-in to csh(1), though with a different
     syntax.

HISTORY
     A which command appeared in 3.0BSD.

OpenBSD 4.9		      September 29, 2010		   OpenBSD 4.9
[top]

List of man pages available for OpenBSD

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net