this post was submitted on 12 Jan 2025
1169 points (98.3% liked)

memes

11318 readers
2692 users here now

Community rules

1. Be civilNo trolling, bigotry or other insulting / annoying behaviour

2. No politicsThis is non-politics community. For political memes please go to [email protected]

3. No recent repostsCheck for reposts when posting a meme, you can only repost after 1 month

4. No botsNo bots without the express approval of the mods or the admins

5. No Spam/AdsNo advertisements or spam. This is an instance rule and the only way to live.

A collection of some classic Lemmy memes for your enjoyment

Sister communities

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 61 points 2 weeks ago (8 children)

Should only be used with extreme caution and if you know what you are doing.

Ok. What is the actual use case for “rm -rf /“ even if you know what you are doing and using extreme caution? If you want to wipe a disk, there are better ways to do it, and you certainly wouldn’t want that disk mounted on / when you do it, right?

[–] [email protected] 78 points 2 weeks ago (1 children)

There probably isn't one and there really doesn't have to be one. The ability to do it is a side effect of the versatility of the command.

[–] [email protected] 17 points 2 weeks ago (1 children)

You might be right. But I’d like to hear from other bone users.

[–] notoftenthat 1 points 2 weeks ago

I don't get to use the bone all that often, but when I do, it is quite effective; much like the amazing efficacy of running rm on the root of the entire filesystem recursively with the force modifier.

[–] [email protected] 34 points 2 weeks ago

None. Remember that the response is AI generated. It's probabilistically created from people's writings. There are strong relations between that command and other 'dangerous commands.' Writings about 'dangerous commands ' oft contain something about how they should 'only be run by someone who knows what they are doing' so the response does too.

[–] [email protected] 12 points 2 weeks ago

There isn't. It's just the fact that it will. The command can/is used often to remove other directories

[–] [email protected] 11 points 2 weeks ago (1 children)

isn't the command meant to be used on a certain path? like if you just graduated high school, you can just run "rm -rf ~/documents/homework/" ?

[–] [email protected] 2 points 2 weeks ago* (last edited 2 weeks ago) (2 children)

Correct me if im wrong, i assume switch "-rf" is short for "Root File", for the starting point of recursion

[–] [email protected] 18 points 2 weeks ago (1 children)

No, -r and -f are two different switches. -r is recursive, used so that it also removes folders within the directory. -f is force (so overriding all confirmations, etc).

[–] [email protected] 6 points 2 weeks ago

It's two switches. The f makes the operation forced. And the r makes the operation recursive.

[–] [email protected] 4 points 2 weeks ago* (last edited 2 weeks ago) (1 children)

TWRP has an option "use rm -rf instead of formatting".

[–] flambonkscious 1 points 2 weeks ago (1 children)

I always wondered why they included that!

[–] [email protected] 2 points 2 weeks ago

I think it was something with some formatting command implementations being broken.

[–] [email protected] 3 points 2 weeks ago

Set up a remote access system on client/customer machines for tech support. When a customer doesn't pay, and notices have been sent and not replied to, and they won't answer your calls: this, on all their machines with past due payments.

Then when they call you in a panic, give them the same kindness and respect that they have given to you, down to the number of days since contact was stopped. Gotta twist that knife for maximum effectiveness. Then and only then should you consider answering their cries of agony.

(now I've never had a client payment issue, usually it's quite some time before they need my assistance again so I take payment in full at completion, not tabs/payment plans; but hypothetically...)

[–] lurch 3 points 2 weeks ago (1 children)

when you're in a chroot and you want to wipe only that whole part. you can't format the chroot, because it's just a subtree of the filesystem you want to keep.

[–] [email protected] 2 points 2 weeks ago

Ok I was thinking of a chroot env as being the only possible use case for this command.