How can I fix red symbolic link in Linux ?

12,097

ls -l /usr/bin/python will only show the symbolic link.

Use ls -l /usr/bin/ | grep python2.7 to see if python2.7 is in the directory.

The output should be something like this:

lrwxrwxrwx 1 root root           9 Jun  3 16:39 python -> python2.7
lrwxrwxrwx 1 root root           9 Jun  3 16:39 python2 -> python2.7
-rwxr-xr-x 1 root root     3550168 Jun  3 02:29 python2.7

The above shows the binary python2.7 and two symbolic links pointing to it.

Share:
12,097
code-8
Author by

code-8

I'm B, I'm a cyb3r-full-stack-web-developer. I love anything that is related to web design/development/security, and I've been in the field for about ~9+ years. I do freelance on the side, if you need a web project done, message me. ;)

Updated on June 04, 2022

Comments

  • code-8
    code-8 almost 2 years

    I did ls -l /usr/bin/python

    I got

    enter image description here

    How can I fix that red symbolic link ?