How remove or fix broken symbolic link?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
2
down vote

favorite












In my case this is the problem



~ $ find ./ -type l -exec file ; |grep broken
./.mozilla/firefox/mwad0hks.default/lock: broken symbolic link to 127.0.1.1:+3704






share|improve this question


















  • 4




    How do you want to fix the broken links?
    – saga
    Nov 28 '17 at 11:29











  • find -xtype l is a simpler way to find broken symlinks
    – Tavian Barnes
    Nov 29 '17 at 14:51














up vote
2
down vote

favorite












In my case this is the problem



~ $ find ./ -type l -exec file ; |grep broken
./.mozilla/firefox/mwad0hks.default/lock: broken symbolic link to 127.0.1.1:+3704






share|improve this question


















  • 4




    How do you want to fix the broken links?
    – saga
    Nov 28 '17 at 11:29











  • find -xtype l is a simpler way to find broken symlinks
    – Tavian Barnes
    Nov 29 '17 at 14:51












up vote
2
down vote

favorite









up vote
2
down vote

favorite











In my case this is the problem



~ $ find ./ -type l -exec file ; |grep broken
./.mozilla/firefox/mwad0hks.default/lock: broken symbolic link to 127.0.1.1:+3704






share|improve this question














In my case this is the problem



~ $ find ./ -type l -exec file ; |grep broken
./.mozilla/firefox/mwad0hks.default/lock: broken symbolic link to 127.0.1.1:+3704








share|improve this question













share|improve this question




share|improve this question








edited Nov 28 '17 at 11:29









Ipor Sircer

8,8571920




8,8571920










asked Nov 28 '17 at 11:26









MoribundMurdoch Polyglotism

112




112







  • 4




    How do you want to fix the broken links?
    – saga
    Nov 28 '17 at 11:29











  • find -xtype l is a simpler way to find broken symlinks
    – Tavian Barnes
    Nov 29 '17 at 14:51












  • 4




    How do you want to fix the broken links?
    – saga
    Nov 28 '17 at 11:29











  • find -xtype l is a simpler way to find broken symlinks
    – Tavian Barnes
    Nov 29 '17 at 14:51







4




4




How do you want to fix the broken links?
– saga
Nov 28 '17 at 11:29





How do you want to fix the broken links?
– saga
Nov 28 '17 at 11:29













find -xtype l is a simpler way to find broken symlinks
– Tavian Barnes
Nov 29 '17 at 14:51




find -xtype l is a simpler way to find broken symlinks
– Tavian Barnes
Nov 29 '17 at 14:51










1 Answer
1






active

oldest

votes

















up vote
1
down vote













Since it’s only a lock file there should be no problem with simply deleting it. You can remove the symbolic link with:



rm ./.mozilla/firefox/mwad0hks.default/lock


If you had a new file you want to point the symbolic link to you could then re-create it using:



ln -s /path/to/target ./.mozilla/firefox/mwad0hks.default/lock





share|improve this answer




















    Your Answer







    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "106"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    convertImagesToLinks: false,
    noModals: false,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













     

    draft saved


    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f407476%2fhow-remove-or-fix-broken-symbolic-link%23new-answer', 'question_page');

    );

    Post as a guest






























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    1
    down vote













    Since it’s only a lock file there should be no problem with simply deleting it. You can remove the symbolic link with:



    rm ./.mozilla/firefox/mwad0hks.default/lock


    If you had a new file you want to point the symbolic link to you could then re-create it using:



    ln -s /path/to/target ./.mozilla/firefox/mwad0hks.default/lock





    share|improve this answer
























      up vote
      1
      down vote













      Since it’s only a lock file there should be no problem with simply deleting it. You can remove the symbolic link with:



      rm ./.mozilla/firefox/mwad0hks.default/lock


      If you had a new file you want to point the symbolic link to you could then re-create it using:



      ln -s /path/to/target ./.mozilla/firefox/mwad0hks.default/lock





      share|improve this answer






















        up vote
        1
        down vote










        up vote
        1
        down vote









        Since it’s only a lock file there should be no problem with simply deleting it. You can remove the symbolic link with:



        rm ./.mozilla/firefox/mwad0hks.default/lock


        If you had a new file you want to point the symbolic link to you could then re-create it using:



        ln -s /path/to/target ./.mozilla/firefox/mwad0hks.default/lock





        share|improve this answer












        Since it’s only a lock file there should be no problem with simply deleting it. You can remove the symbolic link with:



        rm ./.mozilla/firefox/mwad0hks.default/lock


        If you had a new file you want to point the symbolic link to you could then re-create it using:



        ln -s /path/to/target ./.mozilla/firefox/mwad0hks.default/lock






        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Nov 28 '17 at 11:36









        CallumA

        6315




        6315



























             

            draft saved


            draft discarded















































             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f407476%2fhow-remove-or-fix-broken-symbolic-link%23new-answer', 'question_page');

            );

            Post as a guest













































































            Popular posts from this blog

            How to check contact read email or not when send email to Individual?

            Displaying single band from multi-band raster using QGIS

            How many registers does an x86_64 CPU actually have?