Files
oldlinux-files/Minix/2.0.0/wwwman/man1/which.1.html
2024-02-19 00:21:39 -05:00

72 lines
1.0 KiB
HTML

<HTML>
<HEAD>
<TITLE>which(1)</TITLE>
</HEAD>
<BODY>
<H1>which(1)</H1>
<HR>
<PRE>
</PRE>
<H2>NAME</H2><PRE>
which - examine $PATH to see which file will be executed
</PRE>
<H2>SYNOPSIS</H2><PRE>
<STRONG>which</STRONG> <EM>name</EM>
</PRE>
<H2>EXAMPLES</H2><PRE>
<STRONG>which</STRONG> <STRONG>a.out</STRONG> # Tells which <EM>a</EM>.<EM>out</EM> will be executed
</PRE>
<H2>DESCRIPTION</H2><PRE>
The $PATH shell variable controls the MINIX search rules. If a command
<EM>a</EM>.<EM>out</EM> 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 /<EM>bin</EM> and /<EM>usr</EM>/<EM>bin</EM>. The which 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.
</PRE>
<H2>SEE ALSO</H2><PRE>
<STRONG><A HREF="../man1/man.1.html">man(1)</A></STRONG>.
</PRE>
</BODY>
</HTML>