By mistake I have corrupted python file.
gauravv@ubuntu:~/Documents$ cp test.py /usr/local/bin/python cp: cannot create regular file ‘/usr/local/bin/python’: Permission denied gauravv@ubuntu:~/Documents$ sudo cp test.py /usr/local/bin/python [sudo] password for gauravv: gauravv@ubuntu:~/Documents$ Now I am getting this error
gauravv@ubuntu:/usr/local/bin$ python bash: /usr/local/bin/python: /usr/local/bin/python: bad interpreter: Too many levels of symbolic links gauravv@ubuntu:/usr/local/bin$ Any way to restore this file w/o installation.