this post was submitted on 28 Jan 2025
1667 points (99.6% liked)
Programmer Humor
20188 readers
1433 users here now
Welcome to Programmer Humor!
This is a place where you can post jokes, memes, humor, etc. related to programming!
For sharing awful code theres also Programming Horror.
Rules
- Keep content in english
- No advertisements
- Posts must be related to programming or programmer topics
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
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 equivalent
find
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.