Accidentally moved all directories under / to the same directory

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











up vote
0
down vote

favorite












I ran:
for file in /*; do mv "$file" old; done,
forgetting to put the . before /*.



I read that open processes might have the inode stored somewhere. Is it possible to recover my directory structure?



The file explorer is still open, and I am still able to traverse directories.







share|improve this question


























    up vote
    0
    down vote

    favorite












    I ran:
    for file in /*; do mv "$file" old; done,
    forgetting to put the . before /*.



    I read that open processes might have the inode stored somewhere. Is it possible to recover my directory structure?



    The file explorer is still open, and I am still able to traverse directories.







    share|improve this question
























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I ran:
      for file in /*; do mv "$file" old; done,
      forgetting to put the . before /*.



      I read that open processes might have the inode stored somewhere. Is it possible to recover my directory structure?



      The file explorer is still open, and I am still able to traverse directories.







      share|improve this question














      I ran:
      for file in /*; do mv "$file" old; done,
      forgetting to put the . before /*.



      I read that open processes might have the inode stored somewhere. Is it possible to recover my directory structure?



      The file explorer is still open, and I am still able to traverse directories.









      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 18 '17 at 23:18









      Jeff Schaller

      32.1k849109




      32.1k849109










      asked Nov 18 '17 at 22:37









      user261205

      11




      11




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote













          I was able to use the file explorer to copy the old/ in my current directory to /bin. Since the terminal commands failed to run after /bin had moved, I was still able to use the open program in /usr/bin to recover.






          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%2f405499%2faccidentally-moved-all-directories-under-to-the-same-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













            I was able to use the file explorer to copy the old/ in my current directory to /bin. Since the terminal commands failed to run after /bin had moved, I was still able to use the open program in /usr/bin to recover.






            share|improve this answer
























              up vote
              0
              down vote













              I was able to use the file explorer to copy the old/ in my current directory to /bin. Since the terminal commands failed to run after /bin had moved, I was still able to use the open program in /usr/bin to recover.






              share|improve this answer






















                up vote
                0
                down vote










                up vote
                0
                down vote









                I was able to use the file explorer to copy the old/ in my current directory to /bin. Since the terminal commands failed to run after /bin had moved, I was still able to use the open program in /usr/bin to recover.






                share|improve this answer












                I was able to use the file explorer to copy the old/ in my current directory to /bin. Since the terminal commands failed to run after /bin had moved, I was still able to use the open program in /usr/bin to recover.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Nov 18 '17 at 23:03









                user261205

                11




                11



























                     

                    draft saved


                    draft discarded















































                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f405499%2faccidentally-moved-all-directories-under-to-the-same-directory%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?

                    Christian Cage

                    How to properly install USB display driver for Fresco Logic FL2000DX on Ubuntu?