1、根据文件名查找路径
mdfind -name 文件名 例:mdfind -name "hello.txt"
2、根据文件内容查找路径
mdfind ‘文本内容’ 例:mdfind 'hello i am fine'
命令拓展:
根据命令行新建文本文件:touch 文件名+.txt 例:touch hello.txt
1、根据文件名查找路径
mdfind -name 文件名 例:mdfind -name "hello.txt"
2、根据文件内容查找路径
mdfind ‘文本内容’ 例:mdfind 'hello i am fine'
命令拓展:
根据命令行新建文本文件:touch 文件名+.txt 例:touch hello.txt