Line | |
---|
1 | .TH WHICH 1
|
---|
2 | .SH NAME
|
---|
3 | which \- examine $PATH to see which file will be executed
|
---|
4 | .SH SYNOPSIS
|
---|
5 | \fBwhich \fIname\fR
|
---|
6 | .br
|
---|
7 | .de FL
|
---|
8 | .TP
|
---|
9 | \\fB\\$1\\fR
|
---|
10 | \\$2
|
---|
11 | ..
|
---|
12 | .de EX
|
---|
13 | .TP 20
|
---|
14 | \\fB\\$1\\fR
|
---|
15 | # \\$2
|
---|
16 | ..
|
---|
17 | .SH EXAMPLES
|
---|
18 | .EX "which a.out" "Tells which \fIa.out\fR will be executed"
|
---|
19 | .SH DESCRIPTION
|
---|
20 | .PP
|
---|
21 | The $PATH shell variable controls the
|
---|
22 | \s-1MINIX 3\s-1
|
---|
23 | search rules.
|
---|
24 | If a command \fIa.out\fR is given, the shell first tries to find an
|
---|
25 | executable file in the working directory.
|
---|
26 | If that fails, it looks in various system directories, such as
|
---|
27 | \fI/bin\fR and \fI/usr/bin\fR.
|
---|
28 | The\fR which\fR command makes the same search and gives the absolute
|
---|
29 | path of the program that will be chosen, followed by other occurrences
|
---|
30 | of the file name along the path.
|
---|
31 | .SH "SEE ALSO"
|
---|
32 | .BR man (1).
|
---|
Note:
See
TracBrowser
for help on using the repository browser.