which.1

来自「Unix操作系统minix 2.0源码」· 1 代码 · 共 33 行

1
33
字号
.TH WHICH 1.SH NAMEwhich \- examine $PATH to see which file will be executed.SH SYNOPSIS\fBwhich \fIname\fR.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.out\fR will be executed".SH DESCRIPTION.PPThe $PATH shell variable controls the \s-2MINIX\s+2search rules. If a command \fIa.out\fR 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/bin\fR and \fI/usr/bin\fR.  The\fR which\fR command makes the same search and gives the absolutepath of the program that will be chosen, followed by other occurrencesof the file name along the path..SH "SEE ALSO".BR man (1).

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?