What is that for?
Comment on Pretend you are my boss at the rule opening factory
wildbus8979@sh.itjust.works 6 months ago
Remember kids, you gotta use rm -rf --no-preserve-root /
now a days!
Kowowow@lemmy.ca 6 months ago
TropicalDingdong@lemmy.world 6 months ago
ImplyingImplications@lemmy.ca 6 months ago
Too many people got trolled into “removing the French language pack” on Linux systems that there’s now a check to see if someone is deleting every file off their computer (including the os system files). --no-preserve-root is the option you need to include to actually delete all the files off your system.
Jumuta@sh.itjust.works 6 months ago
weird how it doesn’t warn you for rm -rf /* though
lseif@sopuli.xyz 6 months ago
depending on your shell, i believe the glob is expanded before it gets to the
rm
program
wander1236@sh.itjust.works 6 months ago
Contrary to the memes, Linux does actually sometimes try to stop you from shooting yourself in the foot
rtxn@lemmy.world 6 months ago
Yes, do as I say!
LainTrain@lemmy.dbzer0.com 6 months ago
Every time I get one of these even if I 100% feel like I know what I’m doing it strikes a deep fear in me
CCF_100@sh.itjust.works 6 months ago
Overrides the protection in place that prevents you from deleting the root of your filesystem.
Barbarian@sh.itjust.works 6 months ago
rm -rf /*
will work just fine.You need the additional flag for
rm -rf --no-preserve-root /
.