1.find查找文件的路径
find /home/qiao/ -name ‘rgcn.py"
--/home/qiao/algorithm/4_rgcn/rgcn_save.py
2. grep:查找包含查找某个符号(比如某个单词)的文件
-n表示在结果中显示行号;
-r表示递归查找;
grep -nr "model.eval()"
--
forward_lr_test.py:350: # model.eval()
forward_lr_test1.py:313: model.eval()
rgcn_save1.py:80:model.eval()
3. which查应用程序(命令),只显示命令的路径
which python
--/data/soft/anaconda3/bin/python
4. whereis查应用程序(命令),显示路径或者man手册位置
whereis python
--python: /usr/bin/python2.7-config /usr/bin/python2.7 /usr/bin/python /usr/bin/python3.5m /usr/bin/python3.5-config /usr/bin/python3.5 /usr/bin/python3.5m-config /usr/lib/python2.7 /usr/lib/python3.5 /etc/python2.7 /etc/python /etc/python3.5 /usr/local/lib/python2.7 /usr/local/lib/python3.5 /usr/include/python2.7 /usr/include/python3.5m /usr/include/python3.5 /usr/share/python /data/soft/anaconda3/bin/python3.6m-config /data/soft/anaconda3/bin/python /data/soft/anaconda3/bin/python3.6-config /data/soft/anaconda3/bin/python3.6m /data/soft/anaconda3/bin/python3.6 /usr/share/man/man1/python.1.gz