Quote:
Originally Posted by
TiedCone
I will double check type command and make sure if this is really /usr/bin/ls.
Is 'echo $PATH' ok for checking this?
"echo $PATH" won't help that much identifying what command is run especially as you previously stated you believe "which ls" reported "/usr/bin/ls".
I more than strongly doubt your /usr/bin/ls binary is corrupted in a way that it still works as usual but set the color to green. That would be an extraordinary dubious event.
As already written, "type ls" is the only reliable and portable way to know what is "ls" under the cover.
If it shows "ls" is an alias or a function, check where it is defined in the shell initialization files like /etc/profile, .profile, .bash_profile, .kshrc, .bashrc, .bash_login, $ENV, $FPATH, ... depending on the actual shell used.