Embark on a journey of knowledge! Take the quiz and earn valuable credits.
Take A QuizChallenge yourself and boost your learning! Start the quiz now to earn credits.
Take A QuizUnlock your potential! Begin the quiz, answer questions, and accumulate credits along the way.
Take A QuizKindly log in to use this feature. We’ll take you to the login page automatically.
LoginGeneral Tech Bugs & Fixes 3 years ago
User submissions are the sole responsibility of contributors, with TuteeHUB disclaiming liability for accuracy, copyrights, or consequences of use; content is for informational purposes only and not professional advice.
tgz (tar.gz) is a two-level-archive. first a stream of files is saved as tar. second the tar file is compressed with gzip. if you extract a gzip file you will always get a single file - extensionless file with temp-looking name in case of 7-zip. this file can "unpacked" with tar, or with 7-zip again.
besides tar stream contains metadata like file permissions, group id + user id, xattrs or selinux context (and maybe symbolic links) which get lost on windows file system, unpacking linux files may fail or cause trouble because of the ascii charset in file names (all chars except / allowed in linux). usually it makes no sense to extract tar archive to windows disk
No matter what stage you're at in your education or career, TuteeHUB will help you reach the next level that you're aiming for. Simply,Choose a subject/topic and get started in self-paced practice sessions to improve your knowledge and scores.
Kindly log in to use this feature. We’ll take you to the login page automatically.
Login
Ready to take your education and career to the next level? Register today and join our growing community of learners and professionals.
Your experience on this site will be improved by allowing cookies. Read Cookie Policy
Your experience on this site will be improved by allowing cookies. Read Cookie Policy
manpreet
Best Answer
3 years ago
I've received a Tar/GZipped file that was created on an embedded Linux device.
The file can be extracted perfectly fine on a Linux desktop if I run something like
tar zxf myFile.tgz. The file extracts to something like...but I suspect the specific file content and layout are irrelevant.
When I try to extract this same file in Windows (using either 7-Zip or WinZip), I get:
myFile/file with temp-looking name e.g. "logs_xqUt09">
It's probably relevant that that top-level directory happens to be named "
myFile" when the.tgzI received is itself namedmyFile.tgz...but I don't know with certainty that it's anything more than coincidental.I browsed SuperUser a bit, and found a few related issues, one of which suggested that 7-Ziphandles
.tgzfiles better than WinZip, but apparently not in this situation.Does anyone know what gives? Why would a
.tgzbe fully extractable under Linux but not Windows? What workarounds might there be?If I rename that extensionless file to a
.tarfile, then that.tarfile is extractable with 7-Zip and/or WinZip.I'd still like to understand what's going on, and if there's a workaround that doesn't involve that manual file renaming, because ideally the original
.tgzfile delivered by the embedded device should be extractable under Linux and Windows.