270
you are viewing a single comment's thread
view the rest of the comments
[-] HiddenLayer555@lemmy.ml 4 points 1 day ago* (last edited 1 day 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 2 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 2 points 1 day ago

i've always preferred rm -rf .*

this post was submitted on 24 Jun 2026
270 points (98.9% liked)

Programmer Humor

42565 readers
9 users here now

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

Rules:

founded 6 years ago
MODERATORS