macOS 上的搜索功能不太好用,搜的太慢。
如果定时每小时把所有文件路径写到一个文件里,就可以搜索的很快了。
给大家分享我写的 crontab
0 * * * * find /Users/xxx
-path '/Users/xxx/Library/Metadata' -prune -o
-path '/Users/xxx/Library/Application Support/Google/Chrome' -prune -o
-path '/Users/xxx/Library/Caches' -prune -o
-type f -a
-print0 |
xargs -0 ls -lh |
awk '{print $5,"@",substr($0,index($0,$9))}'
> /Users/xxx/file_and_size.txt
阅读全文: http://hhwyz.com/2022/04/27/%E5%BF%AB%E9%80%9F%E6%90%9C%E7%B4%A2%E6%96%87%E4%BB%B6.html