this post was submitted on 28 Jan 2025
1770 points (99.7% liked)
Programmer Humor
27512 readers
632 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 -vfind . -name “.DS_Store” -type d -exec rm -rf {} + -printThat doesn't work,
DS_Storeare files not directories ( you need to use-type f).An equivalent
findcommand would be:find "$HOME" -type f -name '.DS_Store' -delete -printfindtakes a while;fdis way, way faster, butfindis preinstalled, so there is that.