this post was submitted on 24 Jun 2026
278 points (98.6% liked)

Programmer Humor

42711 readers
163 users here now

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

Rules:

founded 6 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] HiddenLayer555@lemmy.ml 5 points 1 week ago* (last edited 1 week 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 week 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 3 points 1 week ago (1 children)

i've always preferred rm -rf .*

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

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

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