Corey
by Corey
~1 min read

Categories

  • articles

Tags

  • Mac

Why

If moving files between Mac and other OS such as Windows or Linux, some files such as .DS_Store can cause unexpected problems.

What

.DS_Store: Store Finder-specific preferences concerning the display of each of your folders.

Thumbs.db: Small cache file that holds thumbnail preview data for folders in Windows.

How

Remove files recursively

sudo find . -name '*.DS_Store' -type f -delete
sudo find . -name 'Thumbs.db' -type f -delete

Prevent produce new files

defaults write com.apple.desktopservices DSDontWriteNetworkStores true

Reference

  1. Remove .DS_Store files