dot_clean
SafeMerge ._ junk files
dot_clean <dir>
Merges the '._' AppleDouble files cluttering USB drives and shares — clean up before handing to Windows users.
Examples
dot_clean -m /Volumes/USBMerge and remove ._ filesfind /Volumes/USB -name '._*' | headPreview the ._ files firstdot_clean -n /Volumes/USBDelete ._ files whose main file no longer existsdefaults write com.apple.desktopservices DSDontWriteNetworkStores -bool trueStop creating .DS_Store on network shares
Syntax
dot_clean [-m] <directory>
Key points
- ._ files store Mac extended attributes on FAT, exFAT and SMB shares. They are hidden on the Mac but visible on Windows.
- .DS_Store is a different file and dot_clean does not remove it.
- -m always deletes the ._ files after merging.
Before you run it
Touches only AppleDouble files.
Used when you see
The same reference, with no signal at all
Every command on this site, held on your device. The app adds 632 more: 1,510 commands and 120 fix flows, searchable with no connection. Free to install, no ads (some content is a one-time purchase).
Get it free on the App Store