which(1) which(1) NAME which - Locates a program file including aliases and paths SYNOPSIS which program... DESCRIPTION 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 envi‐ ronment. The C shell includes a built in which command. The which command described here (written in csh script language) is provided for shells such as the Bourne shell that lack a built-in which command like the C shell. FILES Read at beginning of execution by each shell. DIAGNOSTICS A diagnostic is given if an executable file with the argument name was not found in the path. SEE ALSO Commands: whereis(1) which(1)[top]
Vote for polarhome |