查找
1.find查找文件的路径
根据文件名查找:find /home/qiao/ -name rgcn.py
根据文件所有者查找:find /home/qiao -user xm
根据文件大小查找: find /home/qiao -size +20M

2. locate
locate指令基于数据库查询,第一次运行前,使用前必须用updatedb指令创建Locate数据库

3. grep:查找包含查找某个符号(比如某个单词)的文件
-n表示在结果中显示行号;

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
posted on 2019-10-23 15:33 happygril3 阅读(300) 评论(0) 收藏 举报
浙公网安备 33010602011771号