Consider this a learning experience. Avoid using the root account unless truly necessary, and when you do, go slowly and double check each command before entering it.
You need to reinstall the operating system, as John said. But if you want to try to recover other data from your hard drive, be sure to re-install on a different hard drive, and do not write anything to the old disk until you've exhausted all recovery attempts.
To get an idea of what you'll be up against with a utility like photorec, see my post in this thread:
https://www.linuxquestions.org/quest...er-4175478081/
Unless the data you've lost is of critical importance, it may not be worth the effort of attempting to recover it.