Quote:
Originally Posted by
TiedCone
If i am not mistaken I tested that with: 'which ls' and output was: '/usr/bin/ls'.
The "which" command is useless. It only looks to the PATH so doesn't take into account aliases, builtins or functions. It won't help figuring out what is actually executed when you type a command.
The portable way is "type command".