WHICH.1
上传用户:jnzhq888
上传日期:2007-01-18
资源大小:51694k
文件大小:1k
- .TH WHICH 1
- .SH NAME
- which - examine $PATH to see which file will be executed
- .SH SYNOPSIS
- fBwhich fInamefR
- .br
- .de FL
- .TP
- \fB\$1\fR
- \$2
- ..
- .de EX
- .TP 20
- \fB\$1\fR
- # \$2
- ..
- .SH EXAMPLES
- .EX "which a.out" "Tells which fIa.outfR will be executed"
- .SH DESCRIPTION
- .PP
- The $PATH shell variable controls the
- s-2MINIXs+2
- search rules.
- If a command fIa.outfR is given, the shell first tries to find an
- executable file in the working directory.
- If that fails, it looks in various system directories, such as
- fI/binfR and fI/usr/binfR.
- ThefR whichfR command makes the same search and gives the absolute
- path of the program that will be chosen, followed by other occurrences
- of the file name along the path.
- .SH "SEE ALSO"
- .BR man (1).