You must log in or register to comment.
fd -HI '^\.DS_Store$' $HOME -tf -X rm -v
find . -name “.DS_Store” -type d -exec rm -rf {} + -print
That doesn’t work,
DS_Store
are files not directories ( you need to use-type f
).
An equivalentfind
command would be:
find "$HOME" -type f -name '.DS_Store' -delete -print
find
takes a while;fd
is way, way faster, butfind
is preinstalled, so there is that.