281
you are viewing a single comment's thread
view the rest of the comments
[-] HiddenLayer555@lemmy.ml 6 points 3 weeks ago* (last edited 3 weeks ago)

/*

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 *

[-] huf@hexbear.net 4 points 3 weeks ago

i've always preferred rm -rf .*

[-] Sasquatch@lemmy.ml 1 points 3 weeks ago

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

[-] huf@hexbear.net 1 points 2 weeks ago* (last edited 2 weeks ago)
[-] dragnucs@lemmy.ml 4 points 3 weeks 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.

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

Programmer Humor

42855 readers
12 users here now

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

Rules:

founded 7 years ago
MODERATORS