ERROR: unexpected end of the file

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











up vote
0
down vote

favorite












I have to unpack a tar.gz file after moving it to a folder. While moving it to destination folder, I unexpectedly tried to move it to ] named folder and gave Ctrl+C . Now half of the files are in tar.gz and half in ].



Then I tried to move ] into tar.gz and it was moved.



Now when I try to unpack the file it is showing unexpected end of file error.



Is there any way to bring back the ] from tar.gz and make the exact tar.gz file and unzip the same.



Thanks in advance.










share|improve this question



























    up vote
    0
    down vote

    favorite












    I have to unpack a tar.gz file after moving it to a folder. While moving it to destination folder, I unexpectedly tried to move it to ] named folder and gave Ctrl+C . Now half of the files are in tar.gz and half in ].



    Then I tried to move ] into tar.gz and it was moved.



    Now when I try to unpack the file it is showing unexpected end of file error.



    Is there any way to bring back the ] from tar.gz and make the exact tar.gz file and unzip the same.



    Thanks in advance.










    share|improve this question

























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I have to unpack a tar.gz file after moving it to a folder. While moving it to destination folder, I unexpectedly tried to move it to ] named folder and gave Ctrl+C . Now half of the files are in tar.gz and half in ].



      Then I tried to move ] into tar.gz and it was moved.



      Now when I try to unpack the file it is showing unexpected end of file error.



      Is there any way to bring back the ] from tar.gz and make the exact tar.gz file and unzip the same.



      Thanks in advance.










      share|improve this question















      I have to unpack a tar.gz file after moving it to a folder. While moving it to destination folder, I unexpectedly tried to move it to ] named folder and gave Ctrl+C . Now half of the files are in tar.gz and half in ].



      Then I tried to move ] into tar.gz and it was moved.



      Now when I try to unpack the file it is showing unexpected end of file error.



      Is there any way to bring back the ] from tar.gz and make the exact tar.gz file and unzip the same.



      Thanks in advance.







      files mv






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Oct 3 '17 at 19:43









      Kusalananda

      105k14209326




      105k14209326










      asked Oct 3 '17 at 19:07









      Ram

      1




      1




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          4
          down vote













          No, that's not how mv works.



          I'm assuming that you are talking about a single file that you accidentally moved to the wrong name on another filesystem (and interrupted the transfer half-way through), and then moved the wrongly named file back to its original location and name.



          If the file moves within the same filesystem, the move is pretty much instantaneous (it's just a renaming of the file and does not even touch the file's content).



          If the file is moved to a new filesystem, then the file contents is copied, then the original is deleted.



          If you moved the file between filesystems and interrupted the process, the original would still have been intact. But since you now have overwritten the original with the partial copy, the original is unfortunately lost.



          Restore from backup, if you have one.



          See also: Can overwritten files be recovered?






          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%2f395901%2ferror-unexpected-end-of-the-file%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
            4
            down vote













            No, that's not how mv works.



            I'm assuming that you are talking about a single file that you accidentally moved to the wrong name on another filesystem (and interrupted the transfer half-way through), and then moved the wrongly named file back to its original location and name.



            If the file moves within the same filesystem, the move is pretty much instantaneous (it's just a renaming of the file and does not even touch the file's content).



            If the file is moved to a new filesystem, then the file contents is copied, then the original is deleted.



            If you moved the file between filesystems and interrupted the process, the original would still have been intact. But since you now have overwritten the original with the partial copy, the original is unfortunately lost.



            Restore from backup, if you have one.



            See also: Can overwritten files be recovered?






            share|improve this answer


























              up vote
              4
              down vote













              No, that's not how mv works.



              I'm assuming that you are talking about a single file that you accidentally moved to the wrong name on another filesystem (and interrupted the transfer half-way through), and then moved the wrongly named file back to its original location and name.



              If the file moves within the same filesystem, the move is pretty much instantaneous (it's just a renaming of the file and does not even touch the file's content).



              If the file is moved to a new filesystem, then the file contents is copied, then the original is deleted.



              If you moved the file between filesystems and interrupted the process, the original would still have been intact. But since you now have overwritten the original with the partial copy, the original is unfortunately lost.



              Restore from backup, if you have one.



              See also: Can overwritten files be recovered?






              share|improve this answer
























                up vote
                4
                down vote










                up vote
                4
                down vote









                No, that's not how mv works.



                I'm assuming that you are talking about a single file that you accidentally moved to the wrong name on another filesystem (and interrupted the transfer half-way through), and then moved the wrongly named file back to its original location and name.



                If the file moves within the same filesystem, the move is pretty much instantaneous (it's just a renaming of the file and does not even touch the file's content).



                If the file is moved to a new filesystem, then the file contents is copied, then the original is deleted.



                If you moved the file between filesystems and interrupted the process, the original would still have been intact. But since you now have overwritten the original with the partial copy, the original is unfortunately lost.



                Restore from backup, if you have one.



                See also: Can overwritten files be recovered?






                share|improve this answer














                No, that's not how mv works.



                I'm assuming that you are talking about a single file that you accidentally moved to the wrong name on another filesystem (and interrupted the transfer half-way through), and then moved the wrongly named file back to its original location and name.



                If the file moves within the same filesystem, the move is pretty much instantaneous (it's just a renaming of the file and does not even touch the file's content).



                If the file is moved to a new filesystem, then the file contents is copied, then the original is deleted.



                If you moved the file between filesystems and interrupted the process, the original would still have been intact. But since you now have overwritten the original with the partial copy, the original is unfortunately lost.



                Restore from backup, if you have one.



                See also: Can overwritten files be recovered?







                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited Oct 4 '17 at 6:49

























                answered Oct 3 '17 at 19:35









                Kusalananda

                105k14209326




                105k14209326



























                     

                    draft saved


                    draft discarded















































                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f395901%2ferror-unexpected-end-of-the-file%23new-answer', 'question_page');

                    );

                    Post as a guest