WHICH.1
资源名称:os_source.zip [点击查看]
上传用户:datang2001
上传日期:2007-02-01
资源大小:53269k
文件大小:1k
源码类别:
操作系统开发
开发平台:
C/C++
- .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).