.DS_Store Auto-removal

Removing those pesky Finder cache files...

12-30-23

Frustratingly, macOS creates .DS_Store files in directories accessed by Finder, plaguing my home NAS.

The easiest solution I found was to create a cron job which auto-removes these cache files. crontab -e and append the following:

59 23 * * * find . -type f -name '._*' -delete
59 23 * * * find . -type f -name '.DS_Store' -delete

Tagged: linux homelab