User Commands  - which- (1)

NAME

which-(1f) - [FUNIX:FILESYSTEM] shows the full path of (shell) commands. (LICENSE:PD)

CONTENTS

Synopsis
Description
Options
Return Value
Example
Author
License

SYNOPSIS

which- program_leafname [ --all| -a]|[ --help|--version]

DESCRIPTION

which-(1f) takes one or more pathnames. For each of its arguments it prints to stdout the full path of the executables that would have been executed when this argument had been entered at the shell prompt. It does this by searching for an executable or script in the directories listed in the environment variable PATH.

OPTIONS

--all,-a
  Print all matching executables in PATH, not just the first.
--version
  Print version information on standard output then exit successfully.
--help Print usage information on standard output then exit successfully.

RETURN VALUE

Which returns the number of failed arguments, or -1 when no programname was given.

EXAMPLE

AUTHOR

John S. Urban

LICENSE

Public Domain


Nemo Release 3.1 which- (1) February 23, 2025
Generated by manServer 1.08 from c03b5a59-80c4-40aa-bc08-33bd8ef9d743 using man macros.