.DS_Store
en.wikipedia.org
en.wikipedia.org
defaults write com.apple.desktopservices DSDontWriteNetworkStores true
defaults write com.apple.desktopservices DSDontWriteUSBStores true
Well I am guilty on this one. I should not have learned this from a HN comment. But I did, so all that's left is THANK YOU.
Yes I know they serve a purpose and Windows does it too :)
MacOS has done some interesting things with extended attributes and other metadata, but why in God's name can't we get rid of the .DS_Store is beyond me.
Here's something even better. When copying files across to non Mac file systems, be prepared for a ton of files with names like "._.filename".
Once in a while I clean out the clutter:
$ find $DIR -type f -name .DS_Store -exec rm '{}' \;
find $DIR -type f -name .DS_Store -exec rm {} +
Completing the `-exec` predicate with the plus-sign results in only one fork-and-exec call to the `rm` command (as long as the number of arguments doesn’t exceed the system’s `ARG_MAX` limit), similar to how the `xargs` utility aggregates arguments into sets.This feature has been in POSIX for many years so I’m guessing it should be available with the Mac OS X version. If you install GNU find, it also includes a `-delete` action so there’s no need to even call an external command to delete files.
find $DIR -type f -name .DS_Store -delete +
https://en.wikipedia.org/wiki/Resource_fork
https://en.wikipedia.org/wiki/AppleSingle_and_AppleDouble_fo...
There's no setting that I could find that just turns it off for network and usb drives formatted with non-Mac filesystems.
I never thought about it that way! It's digital littering.
MacOS also has alternate file streams but chooses to create these annoying ".DS_Store" files on every filesystem.
Since NeXTSTEP (and hence early OS X) had boot drive support for other file systems (UFS) and other networking standards (NFS) they needed a generic solution that worked everywhere.
https://en.wikipedia.org/wiki/Hierarchical_File_System#Desig...
> The File Record also stores two 16 byte fields that are used by the Finder to store attributes about the file including things like its creator code, type code, the window the file should appear in and its location within the window
> Like the File Record, the Directory Record also stores two 16 byte fields for use by the Finder. These store things like the width & height and x & y co-ordinates for the window used to display the contents of the directory, the display mode (icon view, list view, etc.) of the window and the position of the window's scroll bar.
Serves a purpose on one OS, and that OS hides it from view by default.
The Finder won't remember you choosing custom view settings for that folder, or if you have assigned custom positions for icons in that folder. Neither loss is problematic.
If you are accessing shared directories, you can simply turn off storing that data in the shares, completely.