ERROR: unexpected end of the file

Clash 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.
files mv
add a comment |Â
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.
files mv
add a comment |Â
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.
files mv
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
files mv
edited Oct 3 '17 at 19:43
Kusalananda
105k14209326
105k14209326
asked Oct 3 '17 at 19:07
Ram
1
1
add a comment |Â
add a comment |Â
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?
add a comment |Â
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?
add a comment |Â
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?
add a comment |Â
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?
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?
edited Oct 4 '17 at 6:49
answered Oct 3 '17 at 19:35
Kusalananda
105k14209326
105k14209326
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password