GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
WHENCE(1) Korn Shell WHENCE(1)

whence - locate a command and describe its type

whence [flags] name...

Without -v, whence writes on standard output an absolute pathname, if any, corresponding to name based on the complete search order that the shell uses. If name is not found, then no output is produced.

If -v is specified, the output will also contain information that indicates how the given name would be interpreted by the shell in the current execution environment.

-p, -P
Do not check to see if name is a reserved word, a built-in, an alias, or a function. This turns off the -v option.
-a
Displays all uses for each name rather than the first.
-f
Do not check for functions.
-t
Output only the type for each command.
-q
Quiet mode. Returns 0 if all arguments are built-ins, functions, or are programs found on the path.
-v
For each name you specify, the shell displays a line that indicates if that name is one of the following:
  • Reserved word
  • Alias
  • Built-in
  • Undefined function
  • Function
  • Tracked alias
  • Program


0
Each name was found by the shell.
1
One or more names were not found by the shell.
>1
An error occurred.

command(1)

David J. Korn, et. al.

2019, David J. Korn, et.al.
October 3, 2019

Search for    or go to Top of page |  Section 1 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.