xwhich prints the location and type information of all arguments.
is printed as an XML document.
If -n is specified only the check and return value is performed and nothing is output. This can be used to determine if a command exists.