Tips to clean up the disk storage

Find the duplicates

Clean up existing data structure

find . -type d -empty -delete
find . -iname thumbs.db -delete
find . -iname .ds_store -delete
find . -iname ._* -delete
find . -iname desktop.ini -delete

To prevent mac from creating .ds_store files

defaults write DSDontWriteUSBStores -bool true
defaults write DSDontWriteNetworkStores -bool true

This will create a file under ~/Library/Preferences/

Once you have this, the files won’t be created on network and usb stores