Question: I accidentally deleted python, python2, python2.7 files from /usr/bin/. 
Now yum is also not working.

Is it possible to recover them?

Answer: 
You cannot recover the files, if you really deleted them. If you have no backup at hand, and you don't want to reboot from the installation disc, you can still try to copy it over from a different installation of the same OS:

```
cp /path/to/your/copy/python2.7 /usr/bin
ln -s /usr/bin/python2.7 /usr/bin/python

```

It should be the same OS and distribution for the same processor family and type.

If that fails, you can still boot from the installation disc and re-install Python.
Eventually, yum will stop working for centos users.

Then, copy /usr/bin/python and /usr/bin/python2.7 from another virtual machine (same OS), and paste that to /usr/bin (from where you deleted).

Also, give read and execute permission to both files,

```
$ chmod 755 /usr/bin/python*

```