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:
- Posts must be relevant to programming, programmers, or computer science.
- No NSFW content.
- Jokes must be in good taste. No hate speech, bigotry, etc.
founded 6 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
That rmrf joke is obsolete, please update to using the --no-preserve-root flag.
/*
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 *
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.
i've always preferred
rm -rf .*Wont that get only the hidden files not normally collected in the plain
*glob?plus
.and..