logo

utils-std

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

which.1 (723B)


  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 STANDARDS
  40. None.
  41. .Sh AUTHORS
  42. .An Haelwenn (lanodan) Monnier Aq Mt contact+utils@hacktivis.me