WHICH.1
Upload User: jnzhq888
Upload Date: 2007-01-18
Package Size: 51694k
Code Size: 1k
Category:

OS Develop

Development Platform:

WINDOWS

  1. .TH WHICH 1
  2. .SH NAME
  3. which - examine $PATH to see which file will be executed
  4. .SH SYNOPSIS
  5. fBwhich fInamefR
  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.outfR will be executed"
  19. .SH DESCRIPTION
  20. .PP
  21. The $PATH shell variable controls the 
  22. s-2MINIXs+2
  23. search rules. 
  24. If a command fIa.outfR 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/binfR and fI/usr/binfR.  
  28. ThefR whichfR 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).