which we can get the pathname which would be executed in the current environment. But when I redefined a command with
alias in .bashrc .
The result returned by
which is still the old one even in a new terminal.
How can I get the right output?
$ which -a python /home/gerry/epd7/bin/python /usr/bin/python $ which python /home/gerry/epd7/bin/python $ python Python 2.7.1+ (r271:86832, Apr 11 2011, 18:13:53) [GCC 4.5.2] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> $ /home/gerry/epd7/bin/python Enthought Python Distribution -- www.enthought.com Version: 7.1-2 (64-bit) Python 2.7.2 |EPD 7.1-2 (64-bit)| (default, Jul 3 2011, 15:17:51) [GCC 4.1.2 20080704 (Red Hat 4.1.2-44)] on linux2 Type "packages", "demo" or "enthought" for more information. >>>
I have tried
source .bashrc, relogin,rebooting. None of them work. There must be cache somewhere. I am using Mint Linux 11 64bit