this post was submitted on 23 Jul 2024
262 points (100.0% liked)

Programmer Humor

421 readers
43 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 1 year ago
MODERATORS
262
rm -rf / (programming.dev)
submitted 3 months ago* (last edited 3 months ago) by JPDev@programming.dev to c/programmer_humor@programming.dev
 
top 13 comments
sorted by: hot top controversial new old
[–] Barzaria@lemmy.dbzer0.com 18 points 3 months ago (2 children)

I always use this command as $rm -fr and read it as remove, for real

[–] Ephera@lemmy.ml 10 points 3 months ago (1 children)

I do write it as rm -rf, but then my brain always continues singing The Lion Sleeps Tonight...

[–] MonkeMischief@lemmy.today 4 points 3 months ago

singing The Lion Sleeps Tonight...

"reeHEEEEEEEEEEEEEE--EE--Eaally ya-sure ya-wan-nadothaaat?"

(rm -rf, rm -rf, rm -rf)

[–] sukhmel@programming.dev 6 points 3 months ago

it's for the French locale

[–] reboot6675@sopuli.xyz 16 points 3 months ago

Another one of this kind is rm -rf node_modules && npm install

[–] sgibson5150@slrpnk.net 15 points 3 months ago

Hey, sometimes you need to hose out the cruft.

Why yes, I do maintain a legacy application that still stores user files in Program Files in blatent violation of 15 years of Windows best practices and continues to be done contrary to my repeated advice, why do you ask?

[–] zqwzzle@lemmy.ca 11 points 3 months ago* (last edited 3 months ago)

Why not git clean -dxf?

[–] Prunebutt@slrpnk.net 10 points 3 months ago (1 children)

I feel dumb: Why git rm -rf and not rm -rf? O.o

[–] JPDev@programming.dev 25 points 3 months ago* (last edited 3 months ago) (2 children)

git rm -rf is only usable within the scope of the git repository and removes files in the staging area and working directory but doesnt affect untracked files or .git. rm -rf affects everything. For this case rm -rf probably would be the better option

edit: did a quick edit on the meme to change it to rm -rf since it makes more sense

[–] BatmanAoD@programming.dev 15 points 3 months ago

rm - rf is the only version that makes sense, since the only reason to delete and re-clone is to recover from an unexpected .git/ state, and git rm won't remove that.

[–] Prunebutt@slrpnk.net 4 points 3 months ago
[–] andyortlieb@lemmy.sdf.org 10 points 3 months ago

I guess that's probably easier than learning how to wipe your ass.

[–] cupcakezealot@lemmy.blahaj.zone 9 points 3 months ago

ew french language pack gross