So, I was messing around with Ubuntu and did sudo rm -r /. All on tty1 in full text mode only.
At first it showed a message saying that doing such recursive things on root was dangerous. So I did sudo rm --no-preserve-root -r /. At first messages flied through saying things did not have permission. Then it stopped in between with heavy disk activity - presumably deleting shit. Finally it stopped at something cannot be deleted because resource was busy.
Naturally I pressed Tab twice to see what commands are left. Not too much. Good. :)
Then I tried running the same command again. And it shows /usr/bin/sudo: No such file or directory stating that sudo has been deleted from the system.
At this point I want to ask 5 things:
What all is left behind in the system?
Why did I get permission denied messages when I am running them as the (virtual) superuser?
What super important things have been deleted that severely affects even a barebones system?
What all can I do with the leftover system?
Can I get it back to a normal working system? If so, how? (Since I am behind proxy, bonus internet points for telling how to do that behind proxy.)
I was just reminded of my example of this and had to laugh. Was wondering if anyone else has similar things. Mine is screen. I'm a terminal junky. I do almost everything in a text terminal and typically have at least 10-15 terminal windows with 5-10 tabs each. I even read my email in a text terminal using mutt. I'm embarrassed to say that it only took me about 13 years of using Unix/BSD/Linux to discover screen.
Just curious if anyone else has had the same thing and maybe learn a few new tricks.submitted by /u/ralfwolf
Automotive Grade Linux is about collaborating to build the car of the future, and doing that through rapid innovation.
Think about the kind of documentation you like to read, and write that. If people don't like it, you can be sure they'll let you know.
ZDnet: Linus Torvalds created Linux, but many others, both developers and executives, helped make it the world's most successful operating system.