Forrest logo
back to the whence tool

whence:tldr:988af

whence: Same as above, except display content of shell functions instead of location (equivalent to `which` builtin).
$ whence -c "${command}"
try on your machine

The command "whence" is used in Unix-like systems (e.g. Linux) to find the location of a specific command or executable file in the system's PATH environment variable.

The -c flag is an option that enables compatibility mode. It modifies the behavior of the "whence" command to mimic the equivalent functionality of the "which" command found in other Unix-like systems.

"${command}" is a placeholder representing the name of the command whose location you want to find. By enclosing it in double quotes "${}", it ensures that any special characters or spaces within the command's name are properly interpreted.

In summary, when you run the command "whence -c "${command}"" in a Unix-like system, it will search for and output the location of the specified command in the system's PATH.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the whence tool