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

Programmer Humor

20188 readers
1257 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
 
(page 3) 50 comments
sorted by: hot top controversial new old
[–] bitcrafter@programming.dev 15 points 2 days ago (8 children)

Linux user has been here.

How can you tell?

*sniff* Still smells like smug.

load more comments (8 replies)

DS DS DS D-not gonna work here anymore, anyway.

[–] MissingInteger@lemm.ee 3 points 2 days ago (1 children)

fd -HI '^\.DS_Store$' $HOME -tf -X rm -v

[–] DarkDarkHouse@lemmy.sdf.org 0 points 2 days ago (1 children)

find . -name “.DS_Store” -type d -exec rm -rf {} + -print

[–] MissingInteger@lemm.ee 3 points 2 days ago

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, but find is preinstalled, so there is that.

load more comments
view more: ‹ prev next ›