this post was submitted on 28 Jan 2025
1677 points (99.6% liked)

Programmer Humor

20215 readers
1659 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
[โ€“] cantankerous_cashew@lemmy.world 8 points 2 days ago* (last edited 2 days ago) (1 children)

you can also delete them recursively with

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

(adapted from this script)

[โ€“] MissingInteger@lemm.ee 9 points 2 days 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.