this post was submitted on 28 Jan 2025
1706 points (99.7% liked)

Programmer Humor

20383 readers
2553 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

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 45 points 1 week ago (3 children)

defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool TRUE

Helps a bit.

[–] [email protected] 9 points 1 week ago* (last edited 1 week ago) (1 children)

you can also delete them recursively with

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

(adapted from this script)

[–] [email protected] 10 points 1 week 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.

load more comments (1 replies)