Created
July 14, 2025 11:58
-
-
Save seemly/a56634e49e1dedc782e50450483b037a to your computer and use it in GitHub Desktop.
Simple shell command to recursively remove unnecessary macOS metadata files (.DS_Store and AppleDouble ._ files) from a directory tree, useful for cleaning up files copied from macOS to Linux or NAS storage.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| find /home /mnt /media /srv -type f \( -name '.DS_Store' -o -name '._*' \) -delete |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment