Information:
Which prints out the path of executables that bash(1) would execute when the passed program names have been entered on the shell prompt. It does this by using the same algorithm as bash.
Tildes and a dot in the PATH are now expanded to the full path by default. Options allow for printing "~/*" or "./*," or you can print all executables that match any directory in PATH.