• @cantankerous_cashew
      link
      9
      edit-2
      1 month ago

      you can also delete them recursively with

      find . -name '*.DS_Store' -type f -print -delete

      (adapted from this script)

      • M.int
        link
        fedilink
        101 month ago

        Why is there a * in front of DS_Store?
        Seems like fastly made a small mistake find . -name '.DS_Store' -type f -print -delete would just match the exact file and is faster.

    • M.int
      link
      fedilink
      11 month ago

      Don’t forget:

      defaults write com.apple.desktopservices DSDontWriteUSBStores -bool true