COHERENT manpages

This page displays the COHERENT manpage for which [Locate executable files].

List of available manpages
Index


which -- Command

Locate executable files
which command ...

which displays the full path  name associated with command. It searches the
directories  named by  environment variable PATH  for the  first executable
that matches command and that you have permission to execute.  If which can
find  no  executable  that  matches  your  request,  an  error  message  is
displayed.

Example

The following  example displays the path names  that correspond to commands
write, vi, myprog, and fsck:

    which write vi myprog fsck

See Also

commands,
find,
PATH,
qfind,
whereis