Press J to jump to the feed. Press question mark to learn the rest of the keyboard shortcuts
Found the internet!
r/linuxmemes
455
Posted by3 years ago

rm -rf --no-preserve-root /

r/linuxmemes - rm -rf --no-preserve-root /
25 comments
98% Upvoted

User avatar
level 1

Last I did that it removed Sudo before it got to any important files so I just got "permission denied" on everything.

26
User avatar
level 2

Last time I did that, I thought I made a mistake in the command so I hit ctrl+c to stop it, and when I tried again, I found that it removed rm.

10
User avatar
level 2

su -

6
level 2
[deleted]
· 3 yr. ago

You're kidding right? sudo is the first thing it loads when running that command.

1
User avatar
level 1

Bah! What a casual. If they were using a real distro like Suicide Linux, the first command would have been just fine.

14
User avatar
level 2

I have never heard of Suicide Linux, now I wanna fire up a vm and try it in a docker image.

3
User avatar
level 1

really nice... i love that meme

26
User avatar
level 1
· 3 yr. ago · edited 3 yr. ago

LPT: scarred of running accidentaly rm -rf --no-preserve-root / or rm -rf ~/ ?

Do sudo touch /-i, touch ~/-i and touch ./-i in the most important directories you have. When you will type rm -rf / accidentally, the -i operator will be added in the command and rm will ask you for confirmation to delete EVERY SINGLE FILE of the directory you're removing. Then, just abort with Ctrl-C

Explanation : touch is used to change the "ladt modified" date of a file, without changing it's content. If the file doesn't exist, it creates it.

11
User avatar
level 2

thanks for this. Also to add to the explanation. the "*" in the command will unfold into all the files including "-i" which will be interpreted a parameter instead of a file and will change rm to ask before deleting. Also I can see that not working for shells that expand files with paths to avoid command alternation.

6
level 2

Please explain. What will actually these commands do?

1
level 1

Is it really work? Newbie here

6
level 2
[deleted]
· 3 yr. ago

Whatever you do with that command, don't do it on a production machine

24
level 2
· 3 yr. ago · edited 3 yr. ago

Don't try it on real hardware you might brick you machine

9
level 2

Don't do it, please.

4
level 2

try it :]

5
level 1

sudo rm -rf /*

is shorter and basically does the same :)

16
level 2

im scared to even type that in a comment

15
level 1

I do this command all the time with my VM, its really fun

2
level 1

''sudo rm -rf /nix/store'' -> impossible to delete *: read only partition

2
level 2

This is why I love nixos.

2
level 1

Why would you delete the entire filesystem?

1
level 2

Joke: ---->

You: 🙃

4
More posts from the linuxmemes community
2.4k
Posted by3 days ago
Silver
r/linuxmemes - no title...
2.4k
83 comments
2.1k
Posted by2 days ago
r/linuxmemes - No community is immune to gatekeeping.
2.1k
249 comments
1.9k
Posted by6 days ago
r/linuxmemes - Its real purpose
1.9k
79 comments
1.9k
Posted by4 days ago
r/linuxmemes - Browsers aren't Linux-Specific
1.9k
112 comments
1.8k
Posted by5 days ago
Silver3
1.8k
70 comments
1.3k
Posted by1 day ago
r/linuxmemes - Proudly made with Gimp
1.3k
59 comments
1.2k
Posted by5 days ago
Silver
r/linuxmemes - Post your favorite application
1.2k
110 comments
1.2k
Posted by1 day ago
Silver
r/linuxmemes - Am I one of the kool kids now?
1.2k
44 comments
1.1k
Posted by4 days ago
Silver2
r/linuxmemes - I'm a professional
1.1k
358 comments
1.0k
Posted by6 days ago
r/linuxmemes - who is this guy and why do I see him alot
1.0k
69 comments
973
Posted by3 days ago
r/linuxmemes - This is the second admin user I use to recover my DE if I fuck up, enjoy
973
52 comments
945
Posted by5 days ago
r/linuxmemes - Get you a girl who appreciates mastery
945
34 comments
916
Posted by12 hours ago
r/linuxmemes - Don't use Ubuntu!
916
251 comments
842
Posted by6 days ago
r/linuxmemes - he should get banned for this
842
86 comments
840
Posted by3 days ago
r/linuxmemes - Who needs mouse in Neovim XD
840
45 comments
722
Posted by4 days ago
Silver
r/linuxmemes - We need to improve our software.
722
90 comments
721
Posted by5 days ago
r/linuxmemes - I've been on this subreddit for about 3 hours
721
76 comments
679
Posted by3 days ago
r/linuxmemes - r/unixporn
679
17 comments
645
Posted by2 days ago
r/linuxmemes - battle of the m-distros
645
202 comments
639
Posted by5 days ago
r/linuxmemes - Ah yes, force quitting vim
639
39 comments
612
Posted by1 day ago
r/linuxmemes - Your Linus
612
41 comments
585
Posted by2 days ago
Silver
r/linuxmemes - Anything!
585
163 comments
549
Posted by4 days ago
r/linuxmemes - it's about to get open source capitalism.
549
3 comments
Continue browsing in r/linuxmemes

About Community

A quiet little sub where people politely discuss common interests surrounding Linux while drinking tea with quiet music playing in the background.
121k

Members

270

Online


Created Mar 25, 2012

Powerups

Powerup to unlock perks for r/linuxmemes