whence
A zsh builtin to indicate how a given command would be interpreted. More information: https://www.unix.com/man-page/OpenSolaris/1/whence/.
-
Interpret {{command}}, with expansion if defined as an
alias(similar to thecommand -vbuiltin):
whence "{{command}}" -
Display type of {{command}}, with location if defined as a function, or binary (equivalent to the
typeandcommand -Vbuiltins):
whence -v "{{command}}" -
Same as above, except display content of shell functions instead of location (equivalent to
whichbuiltin):
whence -c "{{command}}" -
Same as above, but show all occurrences on command path (equivalent to the
wherebuiltin):
whence -ca "{{command}}" -
Search only the
PATHfor {{command}}, ignoring builtins, aliases or shell functions (equivalent to thewherecommand):
whence -p "{{command}}"
License and Disclaimer
The content on this page is copyright © 2014—present the tldr-pages team and contributors.This page is used with permission under Creative Commons Attribution 4.0 International License.
While we do attempt to make sure content is accurate, there isn't a warranty of any kind.