Cannot Delete Files in user file handler open in directory?

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








up vote
1
down vote

favorite












If I have an open SSH session in a server, and I am browsing a particular directory, and another user tries to delete the directory I am in, does the delete folder fail?



I am assuming yes, but the files inside the directory get deleted. I think I am also confusing file handle with something else, but any advisory is appreciated.







share|improve this question




















  • What do you mean by 'browsing'? I have opened 2 terminals. In one I did cd a, in the second I did rm -r a: no problem, a was removed.
    – muclux
    May 24 at 13:42














up vote
1
down vote

favorite












If I have an open SSH session in a server, and I am browsing a particular directory, and another user tries to delete the directory I am in, does the delete folder fail?



I am assuming yes, but the files inside the directory get deleted. I think I am also confusing file handle with something else, but any advisory is appreciated.







share|improve this question




















  • What do you mean by 'browsing'? I have opened 2 terminals. In one I did cd a, in the second I did rm -r a: no problem, a was removed.
    – muclux
    May 24 at 13:42












up vote
1
down vote

favorite









up vote
1
down vote

favorite











If I have an open SSH session in a server, and I am browsing a particular directory, and another user tries to delete the directory I am in, does the delete folder fail?



I am assuming yes, but the files inside the directory get deleted. I think I am also confusing file handle with something else, but any advisory is appreciated.







share|improve this question












If I have an open SSH session in a server, and I am browsing a particular directory, and another user tries to delete the directory I am in, does the delete folder fail?



I am assuming yes, but the files inside the directory get deleted. I think I am also confusing file handle with something else, but any advisory is appreciated.









share|improve this question











share|improve this question




share|improve this question










asked May 24 at 13:23









user833623

61




61











  • What do you mean by 'browsing'? I have opened 2 terminals. In one I did cd a, in the second I did rm -r a: no problem, a was removed.
    – muclux
    May 24 at 13:42
















  • What do you mean by 'browsing'? I have opened 2 terminals. In one I did cd a, in the second I did rm -r a: no problem, a was removed.
    – muclux
    May 24 at 13:42















What do you mean by 'browsing'? I have opened 2 terminals. In one I did cd a, in the second I did rm -r a: no problem, a was removed.
– muclux
May 24 at 13:42




What do you mean by 'browsing'? I have opened 2 terminals. In one I did cd a, in the second I did rm -r a: no problem, a was removed.
– muclux
May 24 at 13:42










1 Answer
1






active

oldest

votes

















up vote
0
down vote














does the delete folder fail




No. Deleting is the removal of the link from the directory above + removal of the link to ".." and to ".". The directory itself remains if there are process active, or it is a current working directory.



Whenever you try to do something in that directory you will get an error notice. ls, rm, cd will all fail if done to something inside that, now deleted, location.






share|improve this answer




















    Your Answer







    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "89"
    ;
    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: true,
    noModals: false,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    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%2faskubuntu.com%2fquestions%2f1039836%2fcannot-delete-files-in-user-file-handler-open-in-directory%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
    0
    down vote














    does the delete folder fail




    No. Deleting is the removal of the link from the directory above + removal of the link to ".." and to ".". The directory itself remains if there are process active, or it is a current working directory.



    Whenever you try to do something in that directory you will get an error notice. ls, rm, cd will all fail if done to something inside that, now deleted, location.






    share|improve this answer
























      up vote
      0
      down vote














      does the delete folder fail




      No. Deleting is the removal of the link from the directory above + removal of the link to ".." and to ".". The directory itself remains if there are process active, or it is a current working directory.



      Whenever you try to do something in that directory you will get an error notice. ls, rm, cd will all fail if done to something inside that, now deleted, location.






      share|improve this answer






















        up vote
        0
        down vote










        up vote
        0
        down vote










        does the delete folder fail




        No. Deleting is the removal of the link from the directory above + removal of the link to ".." and to ".". The directory itself remains if there are process active, or it is a current working directory.



        Whenever you try to do something in that directory you will get an error notice. ls, rm, cd will all fail if done to something inside that, now deleted, location.






        share|improve this answer













        does the delete folder fail




        No. Deleting is the removal of the link from the directory above + removal of the link to ".." and to ".". The directory itself remains if there are process active, or it is a current working directory.



        Whenever you try to do something in that directory you will get an error notice. ls, rm, cd will all fail if done to something inside that, now deleted, location.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered May 24 at 14:50









        Rinzwind

        195k25374506




        195k25374506






















             

            draft saved


            draft discarded


























             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1039836%2fcannot-delete-files-in-user-file-handler-open-in-directory%23new-answer', 'question_page');

            );

            Post as a guest













































































            Popular posts from this blog

            GRUB: Fatal! inconsistent data read from (0x84) 0+xxxxxx

            `kcmshell` modules relation with `/usr/share/applications`

            How to enroll fingerprints to Ubuntu 17.10 with VFS491