2016-06-10 4 views
1

Der which Befehl scheint nicht das richtige Ergebnis geben werden:Pfad nicht wirklich gegeben Weg zu Python

[[email protected] ~]$ unalias python 
bash: unalias: python: not found 
[[email protected] ~]$ unalias which 
bash: unalias: which: not found 
[[email protected] ~]$ which python 
/usr/local/bin/python 
[[email protected] ~]$ /usr/local/bin/python -V 
Python 2.7.6 
[[email protected] ~]$ python -V 
Python 2.6.6 
[[email protected] ~]$ ls -l /usr/local/bin/python* 
lrwxrwxrwx. 1 root root 11 Jun 10 12:27 /usr/local/bin/python -> python2.7.6 
-rwxr-xr-x. 1 root root 8040 Jun 10 12:21 /usr/local/bin/python2.7 
-rwxr-xr-x. 1 root root 8040 Jun 10 12:25 /usr/local/bin/python2.7.6 
-rwxr-xr-x. 1 root root 1674 Jun 10 12:23 /usr/local/bin/python2.7-config 
lrwxrwxrwx. 1 root root 16 Jun 10 12:23 /usr/local/bin/python2-config -> python2.7-config 
lrwxrwxrwx. 1 root root 14 Jun 10 12:23 /usr/local/bin/python-config -> python2-config 
[[email protected] ~]$ 
+0

Obwohl hier nicht das Problem, [hier] (http://unix.stackexchange.com/questions/85249/why-not-use-which-what-to-use-then) einige gute Lektüre ist Warum nicht 'which' mit' bash' verwenden? –

+0

Ich stelle das für einen Tag beiseite Ich kann mich darauf konzentrieren. Sieht interessant aus! –

Antwort

3

Nein, which in Ordnung ist. Bash ist verwirrt.

hash -d python 
+0

Danke! Was macht -d? –

+0

Genau was 'help hash' sagt, ist es. –

+0

Hilfe? Wann erfanden sie das? Mannhasch war wertlos. –

Verwandte Themen