February 2001
Beginner to intermediate
448 pages
9h 2m
English
Official Description
Indicates how a command would be interpreted.
Syntax
whence [-pv] name ...
Options
-a shows all uses of name.
-f excludes functions.
-p searches the path for a name.
-v causes more verbose output.
Oddities
The -a and -f options are available in ksh93 and beyond.
Example
$ whence ls /bin/ls $ $ whence -v ls ls is a tracked alias for /bin/ls $ $ whence -a echo # Displays all uses of echo echo is a shell builtin echo is a tracked alias for /bin/echo $
Read now
Unlock full access