查找目标文件所在路径
root@MEGVII1010525222:/# which pip
/opt/conda/bin/pip
root@MEGVII1010525222:/# which pip3
/opt/conda/bin/pip3
root@MEGVII1010525222:/# which python
/opt/conda/bin/python
root@MEGVII1010525222:/# which python3
/usr/bin/python3
查找链接文件信息
root@MEGVII1010525222:/# ls -l /opt/conda/bin |grep python
-rwxrwxr-x 1 keras users 233 6月 6 2018 ipython
-rwxrwxr-x 1 keras users 233 6月 6 2018 ipython3
lrwxrwxrwx 1 keras users 9 6月 6 2018 python -> python3.5
lrwxrwxrwx 1 keras users 9 6月 6 2018 python3 -> python3.5
-rwxrwxr-x 1 keras users 3646880 6月 6 2018 python3.5
lrwxrwxrwx 1 keras users 17 6月 6 2018 python3.5-config -> python3.5m-config
lrwxrwxrwx 1 keras users 9 6月 6 2018 python3.5m -> python3.5
-rwxrwxr-x 1 keras users 3221 6月 6 2018 python3.5m-config
lrwxrwxrwx 1 keras users 17 6月 6 2018 python3-config -> python3.5m-config
root@MEGVII1010525222:/# ls -l /opt/conda/bin |grep pip
-rwxr-xr-x 1 keras users 220 6月 6 2018 pip
-rwxr-xr-x 1 keras users 220 6月 6 2018 pip3
-rwxr-xr-x 1 keras users 220 6月 6 2018 pip3.5
删除静态文件:
rm /usr/bin/python3