LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 05-03-2013, 12:12 PM   #1
PoleStar
Member
 
Registered: Jul 2010
Posts: 170

Rep: Reputation: 2
convert msdos gzip to linux gzip


How do I convert msdos gzip, in linux gzip.



Code:
 root:~ $ gzip -dc  XXX.txt.gz 

gzip: XXX.txt.gz: not in gzip format



 root:~ $ file   XXX.txt.gz 
XXX.txt.gz: MS-DOS executable (built-in)
Thank you.
 
Old 05-03-2013, 12:26 PM   #2
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Rep: Reputation: Disabled
Hmmm. I don't think there is an MS-DOS version of gzip. Maybe the file is really an MS executable .exe file that got mislabelled. Can you try it on an MSDOS machine?
jdk
 
Old 05-03-2013, 12:41 PM   #3
PoleStar
Member
 
Registered: Jul 2010
Posts: 170

Original Poster
Rep: Reputation: 2


I see. Let me find windows machine.
 
Old 05-03-2013, 01:01 PM   #4
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Rep: Reputation: Disabled
I know that some MSDOS zip files are .exe files which linux can handle. I'm not sure of the details (I don't know much about Windows) but you can look them up.
jdk
 
Old 05-03-2013, 02:08 PM   #5
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: CentOS
Posts: 3,624

Rep: Reputation: 1578Reputation: 1578Reputation: 1578Reputation: 1578Reputation: 1578Reputation: 1578Reputation: 1578Reputation: 1578Reputation: 1578Reputation: 1578Reputation: 1578
It might be a self-extracting ZIP (not gzip) file. If so, the Linux unzip command should be able to handle that.
 
Old 05-03-2013, 08:08 PM   #6
jefro
Moderator
 
Registered: Mar 2008
Posts: 17,195

Rep: Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562
Might try dosbox, or wine to see if will expand.

I might be tempted to try 7-zip.
 
Old 05-05-2013, 05:43 PM   #7
PoleStar
Member
 
Registered: Jul 2010
Posts: 170

Original Poster
Rep: Reputation: 2
ok, that data file was from an appliance.
I found out they recently change from standard linux utilities to their own packaging + utilities.\
They modified usual decompressing tools and rename them just for them self.

So issue is resolved.

Thank you all.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] gzip: exp2012dec11.dmp.gzip: unknown suffix -- ignored 1300 Linux - Newbie 11 12-23-2012 10:19 AM
how to open gzip file? I have gzip installed mhg Linux - Newbie 3 10-24-2008 03:18 AM
[gzip] appears in process table after gzip command completes redmanDBA Linux - General 0 02-26-2008 07:12 AM
apt-get update error: "gzip: stdin: not in gzip format" haertig Debian 0 08-02-2006 06:21 PM
Solaris 8 gzip issues- cannot gzip -d lynx sixosix Solaris / OpenSolaris 4 03-13-2005 04:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:18 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration