logo

utils-std

Collection of commonly available Unix tools git clone https://anongit.hacktivis.me/git/utils-std.git/

which.1 (806B)


  1. .\" utils-std: Collection of commonly available Unix tools
  2. .\" Copyright 2017 Haelwenn (lanodan) Monnier <contact+utils@hacktivis.me>
  3. .\" SPDX-License-Identifier: MPL-2.0
  4. .Dd 2024-05-29
  5. .Dt WHICH 1
  6. .Os
  7. .Sh NAME
  8. .Nm which
  9. .Nd locate executable within PATH
  10. .Sh SYNOPSIS
  11. .Nm
  12. .Op Fl as
  13. .Ar name...
  14. .Sh DESCRIPTION
  15. The
  16. .Nm
  17. utility scans
  18. .Ev PATH
  19. for each given executable
  20. .Ar name .
  21. .Pp
  22. .Nm
  23. shall not be used when the standard
  24. .Xr sh 1
  25. builtin
  26. .Cm command
  27. .Fl v
  28. .Ar name
  29. can be used instead.
  30. .Sh OPTIONS
  31. .Bl -tag -width _a
  32. .It Fl a
  33. List all matching executables.
  34. .It Fl s
  35. Do not print executable names.
  36. .El
  37. .Sh EXIT STATUS
  38. .Ex -std
  39. .Sh HISTORY
  40. A
  41. .Nm
  42. command first appeared in
  43. .Bx 3.0 .
  44. .Pp
  45. The
  46. .Fl a
  47. option first appeared in
  48. .Ox 2.3 .
  49. .Sh AUTHORS
  50. .An Haelwenn (lanodan) Monnier Aq Mt contact+utils@hacktivis.me