I ran this command on Fedora
, which I anyway wanted to uninstall, so I decided to check out this command: sudo rm -rf /*
just for fun. As soon as I ran this command, the GUI stopped working and patches of black started appearing, I thought the work was done, and did a forced shutdown.
[By the way, I was multibooting Windows 10, Linux Mint, Garuda Linux & Fedora]
When I rebooted, I was expecting Garuda Linux's Grub to show up, but nothing happened and DELL's Support Assist showed up. Then I learned from the BIOS, that the EFI partition was completely erased, which makes sense as it was the /boot/efi
directory in Fedora.
Then I had to go through the all the recovery stuff to get my OSs booting again.
I was worried that, like the EFI partition, which was mounted to Fedora was completely erased, all my Data partitions would also be erased with the command. But when I checked out after getting every thing right, every thing was saved. And even the Fedora partition had some space used.
I then formatted the Fedora partition from g-parted of Garuda Linux.
Now I wonder what exactly does the command: sudo rm -rf /*
really does, just to check I didn't lose any other data.