Skip to content
nagoon97's weblog

nagoon97's weblog

Just another WordPress site

Tag: which

Posted on January 17, 2016

When “which” command and the actual executable being executed do not match

Problem:

[root@clnt2 bin]# python -V
Python 2.6.6
[root@clnt2 bin]# which python
/usr/local/bin/python
[root@clnt2 bin]# /usr/local/bin/python -V
Python 2.7.3

[root@clnt2 local]# hash -r
[root@clnt2 local]# python -V
Python 2.7.3

http://unix.stackexchange.com/questions/47363/my-which-command-may-be-wrong-sometimes

 

Recent Posts

  • How store is injected into context and passed down from Provider
  • type vs which in bash
  • rewrite rules are not applied to a virtual host
  • ~/.bash_profile, ~/.bash_login, ~/.profile, ~/.bashrc and /etc/profile
  • Bash wildcards and brace expansions

Recent Comments

  • 29款Ajax超级特效展示及下载 on Ajax mosaic builder
  • Sam on Differences between designMode and contentEditable
  • rakesh makluri on Differences between designMode and contentEditable
  • Roddy on Differences between designMode and contentEditable
  • Gerald on Differences between designMode and contentEditable

Archives

  • July 2017
  • September 2016
  • June 2016
  • May 2016
  • March 2016
  • January 2016
  • April 2008
  • March 2008

Categories

  • ajax
  • apache
  • bash
  • es6
  • gradle
  • Java
  • javascript
  • linux
  • network
  • react
  • Uncategorized

Meta

  • Log in
  • Entries RSS
  • Comments RSS
  • WordPress.org
Proudly powered by WordPress