1 查询文件
查询执行目录下的文件名,及文件夹中的内容
- Usage
find filename
- cmd
find ~/prj -name php
- Result
php/blog_backup/routes/web.php
php/blog_backup/routes/console.php
php/blog_backup/routes/api.php
php/blog_backup/routes/channels.php
php/blog_backup/readme.md
php/blog_backup/server.php
2 locate查询文件夹内容
- Usage
locate foldername
- cmd
locate php
- Result
/home/php/php_binary_installed_file/7.2/phpdbg/conf.d/20-sysvshm.ini
/home/php/php_binary_installed_file/7.2/phpdbg/conf.d/20-tokenizer.in
3 which查询应用程序
- Usage
which executive-program-name
- cmd
which python
- Result
/usr/bin/firefox
4 whereis查询应用程序名
- Usage
whereis executive-program-name
- cmd
whereis python
- Result
python: /usr/bin/python3.6m-config /usr/bin/python3.6m /usr/bin/python /usr/bin/python3.6dm /usr/bin/python3.6dm-config /usr/bin/python3.6-config /usr/bin/python3.6-dbg-config /usr/bin/python2.7-config /usr/bin/python2.7 /usr/bin/python3.6-dbg /usr/bin/python3.6 /usr/lib/python2.7 /usr/lib/python3.7 /usr/lib/python3.6 /etc/python /etc/python2.7 /etc/python3.6 /usr/local/lib/python2.7 /usr/local/lib/python3.6 /usr/include/python3.6m /usr/include/python3.6dm /usr/include/python2.7 /usr/include/python3.6 /usr/share/python /home/xdq/anaconda3/bin/python /home/xdq/anaconda3/bin/python3.7m-config /home/xdq/anaconda3/bin/python3.7m /home/xdq/anaconda3/bin/python3.7-config /home/xdq/anaconda3/bin/python3.7 /usr/local/gurobi811/linux64/bin/python2.7 /usr/share/man/man1/python.1.gz
[参考文献]
[1]https://blog.csdn.net/dcrmg/article/details/78000961
[2]https://blog.csdn.net/jessica1201/article/details/8139249