*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->Tru64 Unix man pages -> which (1)              
Title
Content
Arch
Section
 

which(1)

Contents


NAME    [Toc]    [Back]

       which - Locates a program file including aliases and paths

SYNOPSIS    [Toc]    [Back]

       which program...

DESCRIPTION    [Toc]    [Back]

       The which command takes a list of program names and  looks
       for  the  files that would be executed if these names were
       given as commands.

       Each program argument is expanded if  it  is  aliased  and
       searched  for  along your path.  Both the aliases and path
       are taken from your file.  If you do not have a file,  the
       path is the current PATH from your environment.

       The  which  command  is written in csh script language and
       only works in the C shell.  The  ksh  program  offers  the
       built-in  commands  type  and whence that perform the same
       function as which.  The sh built-in command type can  also
       be used.

FILES    [Toc]    [Back]

       Read at beginning of execution by each shell.

DIAGNOSTICS    [Toc]    [Back]

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

SEE ALSO    [Toc]    [Back]

      
      
       Commands:  whereis(1)



                                                         which(1)
[ Back ]
 Similar pages
Name OS Title
which HP-UX locate a program file including aliases and paths
which IRIX locate a program file including aliases and path (csh only)
ftpd Tru64 The File Transfer Protocol server daemon, including anonymous service
aliases FreeBSD aliases file for sendmail
aliases IRIX aliases file for sendmail
aliases OpenBSD aliases file for sendmail
aliases HP-UX aliases file for sendmail
newaliases HP-UX rebuilds the database for the mail aliases file
newaliases OpenBSD rebuild the data base for the mail aliases file
newaliases IRIX rebuild the data base for the mail aliases file
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service