source: trunk/minix/man/man1/which.1@ 9

Last change on this file since 9 was 9, checked in by Mattia Monga, 13 years ago

Minix 3.1.2a

File size: 760 bytes
Line 
1.TH WHICH 1
2.SH NAME
3which \- 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
21The $PATH shell variable controls the
22\s-1MINIX 3\s-1
23search rules.
24If a command \fIa.out\fR is given, the shell first tries to find an
25executable file in the working directory.
26If that fails, it looks in various system directories, such as
27\fI/bin\fR and \fI/usr/bin\fR.
28The\fR which\fR command makes the same search and gives the absolute
29path of the program that will be chosen, followed by other occurrences
30of the file name along the path.
31.SH "SEE ALSO"
32.BR man (1).
Note: See TracBrowser for help on using the repository browser.