271
you are viewing a single comment's thread
view the rest of the comments
[-] dragnucs@lemmy.ml 22 points 2 days ago* (last edited 2 days ago)

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

[-] HiddenLayer555@lemmy.ml 4 points 2 days ago* (last edited 2 days 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 *

[-] dragnucs@lemmy.ml 3 points 1 day 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 day ago

i've always preferred rm -rf .*

[-] Sasquatch@lemmy.ml 1 points 5 hours ago

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

[-] huf@hexbear.net 1 points 1 hour ago* (last edited 1 hour ago)
this post was submitted on 24 Jun 2026
271 points (98.9% liked)

Programmer Humor

42565 readers
12 users here now

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

Rules:

founded 6 years ago
MODERATORS