Linux或Mac可用指令locate + 關鍵字來查找檔案,在做這件事情之前要先建立整個檔案系統的索引,Linux上的指令是updatedb,在Mac或是其他BSD上則是locate.updatedb。執行過程如下所示:
- cd /
- sudo /usr/libexec/locate.updatedb
指令locate.updatedb的設定檔看起來是 /etc/locate.rc
執行完成以後,更新的索引會放在 /var/db/locate.database
參考資料
- What's the equivalent of Linux's updatedb command for the Mac?
- Manual of locate.updatdb for FreeBSD
- Manual of locate.updatdb for OpenBSD
_EOF_
Light Japan painting style, white snow mountains in the background, rime-frozen river, nature, ultra-clear details, cold colors, master paintings
Steps: 20, Sampler: DPM++ 2M Karras, CFG scale: 7, Seed: 2421064455, Size: 512x256, Model hash: 6ce0161689, Model: v1-5-pruned-emaonly, Version: v1.6.1
Time taken: 1 min. 27.3 sec.
A: 2.31 GB, R: 2.82 GB, Sys: 2.0/2 GB (100.0%)
沒有留言:
張貼留言