Compressed docx-file with bzip2, unable to decompress
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Compressed docx-file with bzip2, unable to decompress
Hi all,
Oops... I just compressed an 18 MB docx-file using bzip2 (directly, so using bzip2 file.docx, instead of using tar). The resulting file is only 100 B, which seemed too good to be true... and is. When I tried to decompress it, I ended up with a 45 B docx-file, containing only one line of total nonsense...
Trying to repair things with bzip2recover did not work, as this targets blocks of data in a bz2-file, and I don't even seem to have one single block in my bz2-file.
Does anyone know if it is possible to recover my original 18 MB docx?
maybe the bzip2 command on (bsd) mac does something different than the gnu version (i know the cp command threw me off using free-bsd to copy directories). maybe this should be posted on the *nix subforum so the mac guys would be able to add their opinions.
Thanks for your quick replies up to now!
The history command works fine on a Mac; it returns the command I just posted (bzip2 file.docx), together with the decompress command (bzip2 -d file.docx.bz2). You might be right about the bzip2 command acting differently on a Mac OS, I don't know. I'll try to migrate this post to the *nix subforum.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.