this post was submitted on 24 Jun 2026
283 points (99.0% liked)

Programmer Humor

43143 readers
13 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 7 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] dragnucs@lemmy.ml 25 points 1 month ago* (last edited 1 month ago) (1 children)

That rmrf joke is obsolete, please update to using the --no-preserve-root flag.

[–] HiddenLayer555@lemmy.ml 7 points 1 month ago* (last edited 1 month ago) (2 children)

/*

Or the (probably, IDK) more common way to do it accidentally, cd into /, think you're somewhere else or type into the wrong shell, and then rm -rf *

[–] dragnucs@lemmy.ml 4 points 1 month ago

A safe approach is to go up one dir ectody and run rm -rf dirname. With that habit you have high confid3nce of deleting folder you need.

[–] huf@hexbear.net 4 points 1 month ago (1 children)

i've always preferred rm -rf .*

[–] Sasquatch@lemmy.ml 1 points 1 month ago (1 children)

Wont that get only the hidden files not normally collected in the plain * glob?

[–] huf@hexbear.net 1 points 1 month ago* (last edited 1 month ago)