1. 搜索一个目录及其子目录下文的文件 find . -type f -name "" 例如: 搜索目录/usrl/local/python3下所有文件名以py4j开头的文件 cd /usr/local/python3 find . -type f -name "py4j*" 2. 统计当前目录下有多少文件 ls -l | grep "^-" | wc -l 3. 统计当前目录下有多少目录 ls -l | grep "^d" | wc -l