How to unzip files on linux


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers How to unzip files on linux
# 1  
Old 09-17-2012
How to unzip files on linux

Hi all
While unzipping files in linux i am getting error as:

Archive: mdxcopy.zip
End-of-central-directory signature not found. Either this file is not
a zipfile, or it constitutes one disk of a multi-part archive. In the
latter case the central directory and zipfile comment will be found on
the last disk(s) of this archive.
unzip: cannot find zipfile directory in one of mdxcopy.zip or
mdxcopy.zip.zip, and cannot find mdxcopy.zip.ZIP, period.

Can anyone guide me on this.
Also i have read other threads regarding this but they have not helped me much.

The problem is when i am taking that zip into my windows machine it is getting unzipped properly and i am able to retrieve all data, but when i am trying to unzip on the Linux server it is throwing me the above error.
Please help.

TIA

Regards
Ganesh
# 2  
Old 09-17-2012
Perhaps you need to update your version of unzip.

Also, run file on that file in case it's anything weird.
# 3  
Old 09-17-2012
what is the extension of your zip file? coz in linux zip files extension is like .gz also... if not there is an option by right clicking on the file like 'extract here'.. try with this..
# 4  
Old 09-18-2012
Hi amisubha the error got resolved.. actually i was trying to extract a blob and i didn't knew in which format it was stored.. i was trying to retrieve it in ZIP format and then tried to extract. but actually it was stored in GZ format in the blob.. after trying all the possible file formats to extract i was successfully able to retrieve it and gunzip it..

Thanks
Ganesh
# 5  
Old 09-18-2012
hmmm gud.. .gz file can be unzipped by tar command.
# 6  
Old 09-18-2012
Quote:
Originally Posted by amisubha
hmmm gud.. .gz file can be unzipped by tar command.
Incorrect, .tar.gz can be unzipped by tar, but not plain .gz

Running file on the file would have told you what it was without the guessing.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Unzip all the files with subdirectories present and append a part of string from the main .zip files

Hi frnds, My requirement is I have a zip file with name say eg: test_ABC_UH_ccde2a_awdeaea_20150422.zip within that there are subdirectories on each directory we again have .zip files and in that we have files like mama20150422.gz and so on. Iam in need of a bash script so that it unzips... (0 Replies)
Discussion started by: Ravi Kishore
0 Replies

2. Shell Programming and Scripting

Script to unzip files and Rename the Output-files

Hi all, I have a many folders with zipped files in them. The zipped files are txt files from different folders. The txt files have the same names. If i try to find . -type f -name "*.zip" -exec cp -R {} /myhome/ZIP \; it fails since the ZIP files from different folders have the same names and... (2 Replies)
Discussion started by: pmkenya
2 Replies

3. Shell Programming and Scripting

Unzip the .zip file without using unzip utility in UNIX

I have .zip file, i want to list all the files archived in the zip file. unzip utility is not working for me in unix. Please help me resolve this issue Thanks ganesh. (3 Replies)
Discussion started by: Ganesh L
3 Replies

4. UNIX for Dummies Questions & Answers

Unzip the Files

I have a list of zip files and regular files in a folder /home/data/ Example: PMExtra_A123_ABC_121001020000.zip PMExtra_B596_GRT_121001020000.zip PMExtra_C156_SFD_121001020000.zip PMExtra_S243_KDF_121001020000.xml PMExtra_L234_IDF_121001020000.xml I have to unzip all the .zip... (8 Replies)
Discussion started by: eskay
8 Replies

5. UNIX for Advanced & Expert Users

how to unzip files in different directories

Hi there: Is there any fest way to upzip files that distributed in several directories and their sub-directory instead of unzipping them directory by directory?? Thanks a lot!!! (1 Reply)
Discussion started by: cls3415
1 Replies

6. Shell Programming and Scripting

How to Unzip a file using unzip utility for files zipped without zip utility ?

Hi, I need to zip/compress a data file and send to a vendor. The vendor does have only unzip utility and can accept only .ZIP files. I do not have zip utility in my server. How do I zip/compress the file so that it can be deflated using unzip command ? I tried gzip & compress commands, but... (1 Reply)
Discussion started by: Sabari Nath S
1 Replies

7. Shell Programming and Scripting

How to Unzip a .ZIP file in Unix without using unzip cmd..?????

Hi All I have ftped a .ZIP file (zipped using WinZip in Windows) to my Unix server (HP-UX). I don't have unzip cmd available in my curent Unix version Please let me know any cmd in UNIX (other than unzip) using which I can unzip this .ZIP file . Please elaborate on the commands aval and... (5 Replies)
Discussion started by: sureshg_sampat
5 Replies

8. UNIX for Dummies Questions & Answers

unzip files in a different folder

hi , I am using this command to unzip files from a source unzip -o $source_dir -d $dest_dir butthe problem is that this command creates a new folder at the destination and unzips all the files in that folder. I dont want that extra folder. e.g source_dir= abc/myname.zip... (2 Replies)
Discussion started by: agarwalniru
2 Replies

9. Shell Programming and Scripting

unzip particular gzip files among the normal data files

Hello experts, I run Solaris 9. I have a below script which is used for gunzip the thousand files from a directory. ---- #!/usr/bin/sh cd /home/thousands/gzipfiles/ for i in `ls -1` do gunzip -c $i > /path/to/file/$i done ---- In my SAME directory there thousand of GZIP file and also... (4 Replies)
Discussion started by: thepurple
4 Replies

10. HP-UX

How to Unzip a .ZIP file in Unix without using unzip cmd..?????

Hi All I have ftped a .ZIP file (zipped using WinZip in Windows) to my Unix server (HP-UX). I don't have unzip cmd available in my curent Unix version Please let me know any cmd in UNIX (other than unzip) using which I can unzip this .ZIP file . Please elaborate on the commands aval and... (5 Replies)
Discussion started by: sureshg_sampat
5 Replies
Login or Register to Ask a Question