o que significa se 'qual X' encontra algo, mas a execução de 'X' falha?

2

Especificamente python:

$ which python
/usr/bin/python

$ ll 'which python'
lrwxrwxrwx 1 root root 9 Jun 18 10:26 /usr/bin/python -> python2.7

$ python
The program 'python3' is currently not installed.

$ ll /usr/local/bin/python
ls: cannot access /usr/local/bin/python: No such file or directory

$ whereis python
python: /usr/bin/python /usr/bin/python2.7 /etc/python /etc/python2.7 /usr/lib/python2.7 /usr/bin/X11/python /usr/bin/X11/python2.7 /usr/local/lib/python2.7 /usr/include/python2.7 /usr/share/python /usr/share/man/man1/python.1.gz

$ python2.7 
Python 2.7.3 (default, Sep 26 2013, 20:03:06) 
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> 

Eu não entendo porque python não executará python2.7 aqui - o link simbólico não está apontando para python2.7?

    
por jcollum 07.11.2013 / 01:33

1 resposta

3

Você pode ter um alias. Experimente type -a python

    
por glenn jackman 07.11.2013 / 01:42