this post was submitted on 12 Oct 2023
1227 points (94.5% liked)

linuxmemes

20892 readers
435 users here now

I use Arch btw


Sister communities:

Community rules

  1. Follow the site-wide rules and code of conduct
  2. Be civil
  3. Post Linux-related content
  4. No recent reposts

Please report posts and comments that break these rules!

founded 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] mojo@lemm.ee 21 points 11 months ago (7 children)

I've never actually tried this but feel like rm should have a built in warning specifically for that command letting them know they've been trolled and have a y/N prompt.

[–] havokdj@lemmy.world 25 points 11 months ago (4 children)

There kind of is one, but it is overridden by -f

[–] Flumsy@feddit.de 12 points 11 months ago (3 children)

You also need the flag "--no-preserve-root".

[–] Silejonu@kbin.social 15 points 11 months ago

No you don't.

rm -fr / requires the flag, but rm -fr /* does not.

load more comments (2 replies)
load more comments (2 replies)
load more comments (4 replies)