I accidently removed my entire /usr directory thanks to RVM. I can still use the terminal prompt with Ctrl+Alt+F6, but I don't have any sudo (I guess it's because of the missing /usr).
Is there any way to recover my files?, I didn't reboot yet. If not how can I make sudo and the other things work again without completly reinstalling the OS? I'm runnig Ubuntu 12.04.
If you have backups => Yes
If you haven't made backups, start making them while you remember why it is important.
I think the easiest solution is to make a copy of your home directory and /etc onto an external disk, then detach the external disk and do a reinstall of the system. If you have enough storage space on an external disk:
Easiest method: backup your own files from a live cd and re-install. It is also the most efficient and less time consuming.
Difficult methods:
Use a data recovery tool like R-Studio for Linux to recover it.
R-Studio for Linux recovers files: