I wanted to delete all my Ubuntu related files from the Ubuntu subsystem within Windows. So I just used sudo rm -rf /*
in the Ubuntu home directory.
I did sudo because earlier there were a lot of permissions denied. Now when there were fewer permissions denied, I started getting all sorts of other errors from Windows and then I realized it was also deleting files outside of Ubuntu.
Now everything is working weird even in Windows. I just canceled the command with Ctrl+C as soon as I realized it, but too much has been damaged. Is there a way to fix this? Is there a way to reverse the last command?