How do i check where the symbolic links real location is?



  • Man page for readlink: https://www.lightnetics.com/post/5875

    On ubuntu an ls just show it pointing to the alternatives, which in turn points to the current version of Maven being used.

    $ ls -l /usr/bin//mvn
    lrwxrwxrwx 1 root root 21 Mar 20 15:21 /usr/bin//mvn -> /etc/alternatives/mvn
    $ ls -l /etc/alternatives/mvn 
    lrwxrwxrwx 1 root root 24 Mar 20 15:21 /etc/alternatives/mvn -> /usr/share/maven
    

    There's a handy command to show where the links real location is. This command is also available on later versions Redhat/Centos.

    $ readlink -f /usr/bin/mvn    
    /usr/share/maven/bin/mvn
    

Log in to reply
 

© Lightnetics 2024