I had so many Python installations that it was getting frustrating, so I decided to do a full reinstall. I removed the /Library/Frameworks/Python.Frameworks/ folder, and meant to remove the /usr/local/bin/python folder too, but I accidentally removed the /usr/bin/python instead. I don't see any difference, everything seems to be working fine for now, but I've read multiple articles online saying that I should never touch /usr/bin/python as OS X uses it and things will break.
I tried Time Machine but there are no viable recovery options. How can I manually "restore" what was deleted? Do I even need to, since everything seems to be working fine for now? I haven't restarted the Mac yet, in fear that things might break.
I believe the exact command I ran was rm -rf /usr/bin/python*, and I don't have anything python related in my /usr/bin/ folder.
I'm running on macOS Mojave 10.14.5
Items can't be recovered when you perform rm -rf. However, you can try the following:
cp /usr/local/bin/python* /usr/bin 
This would copy user local python to usr bin and most probably will bail you out.
Don't worry, nothing will happen to your OS. It should work fine :)
Accidentally deleted /usr/bin/python instead of /usr/local/bin/python on OS X/macOS, how to restore?