• ddh
    link
    fedilink
    English
    arrow-up
    1
    arrow-down
    2
    ·
    9 days ago

    find . -name “.DS_Store” -type d -exec rm -rf {} + -print

    • M.int@lemm.ee
      link
      fedilink
      arrow-up
      4
      ·
      9 days ago

      That doesn’t work, DS_Store are files not directories ( you need to use -type f).
      An equivalent find command would be:
      find "$HOME" -type f -name '.DS_Store' -delete -print
      find takes a while; fd is way, way faster, but find is preinstalled, so there is that.