this post was submitted on 11 May 2025
435 points (97.6% liked)

Funny: Home of the Haha

6997 readers
386 users here now

Welcome to /c/funny, a place for all your humorous and amusing content.

Looking for mods! Send an application to Stamets!

Our Rules:

  1. Keep it civil. We're all people here. Be respectful to one another.

  2. No sexism, racism, homophobia, transphobia or any other flavor of bigotry. I should not need to explain this one.

  3. Try not to repost anything posted within the past month. Beyond that, go for it. Not everyone is on every site all the time.


Other Communities:

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[โ€“] yetAnotherUser@discuss.tchncs.de 17 points 2 days ago (1 children)

You don't need the --no-preserve-root flag for that command.

/* is a shorthand for [every directory in / separated with a space]. rm doesn't even get to see the *, it is automatically substituted by your shell prior to rm being started.

sudo rm -rf /* is therefore exactly the same as:

sudo rm -rf /bin /boot /dev /etc /home /lib /lib64 /lost+found /mnt /opt /proc /root /run /sbin /srv /swapfile /sys /tmp /usr /var
[โ€“] essell@lemmy.world 6 points 2 days ago

Are you one of those vibe codes I've been hearing about? ๐Ÿ˜ฎ