whence - Determine how command is interpreted

Synopsis

whence [ -afpv ] name ...

Description

The whence utility displays how each specified name is interpreted. The name can be an alias, function, special shell built-in, shell built-in, reserved word, or file.

Note that whence is equivalent to command -v and whence -v is equivalent to command -V.

Options

-a
Show all uses for name.
-f
Do not check to see if name is a function.
-p
Do not check to see if name is a reserved word, a built-in utility, an alias, or a function.
-v
Display the type of name.

Operands

Each name is a utility in the current environment.

Exit Status

Related information

Examples
  1. Find the type of the reserved word for:
    whence -v for