首先需要安装tree和grep模块 sudo apt install tree sudo apt install grep 使用如下命令 支持模糊搜索 tree -f / | grep $FILE_NAME