1、根據文件名查找路徑 mdfind -name 文件名 例:mdfind -name "hello.txt"
2、根據文件內容查找路徑 mdfind ‘文本內容’ 例:mdfind 'hello i am fine'
命令拓展: 根據命令行新建文本文件:touch 文件名+.txt 例:touch hello.txt
查看進程 zhanggydeMBP:~ chnzhn$ lsof -i tcp:8800 COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME