.DS_Store
File.DS_Store
file is a hidden file in macOS that stores information about a folder's view options, icon positions, and other visual settings
.DS_Store
# Find all `.DS_Store` files from current and subdirectories find . -name ".DS_Store" -print # Delete find . -name ".DS_Store" -type f -delete
.DS_Store
# Disable future .DS_Store files on network shares defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool TRUE # Disable .DS_Store files on removable media defaults write com.apple.desktopservices DSDontWriteUSBStores -bool TRUE # Re-enable `.DS_Store` defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool FALSE defaults write com.apple.desktopservices DSDontWriteUSBStores -bool FALSE