2
votes
1answer
51 views

Linux Unzip with exclusions from .txt file

I have an unzipping script on Linux. It attempts to unzip with the command: unzip file.zip This is obviously successful. I now wish to exclude some files. The manual tells me of the -x option. I ...
1
vote
3answers
917 views

Linux Mint 12 - how to open a .zip file in terminal

The question above about covers it- I am so very sorry, I see the answers all the time but, though very explicit, I just can't apply them to my terminal. I have a zipped folder, I can't open it in ...
-2
votes
1answer
104 views

Read the contents of a zipped file without extraction just 1 level?

unzip options -t and -l lists entire zip, even sub directories. Is there an option of unzip to read contents just 1 level ? It should list immediate contents of zip. It should not list contents of ...
3
votes
2answers
2k views

how to specify the unzip target directory

Is there an option on linux zip command such that I can hard code the target directory it unzips into. For example, I would like to zip ./mydir files into myzipfile.zip but I want the unzip command to ...
2
votes
2answers
3k views

Unzipping file whilst getting correct permissions?

I unzipped a file on my server using: unzip filename However this seems to have caused all the files having owner/group permissions of 0 0. I files I uploaded was a PHP software script, so ...
12
votes
1answer
5k views

Remove single file from zip archive on Linux

I have a zip archive (created automatically in a script with -j -r flags) and I would like to remove a single file from it. I tried as documented. zip -d "picture_43_9.jpg" gallery.zip but I get ...
1
vote
2answers
5k views

On trying to unzip a file,I get 'Filename not matched' when the directory exists. Why is that?

While trying to unzip a file named Joomla_3.0.3-Stable-Full_Package.zip to the directory named joomla I get filename not matched. Why is that ? [root@Feddy Joomla]# unzip -Z ...
2
votes
1answer
430 views

Find out the name of a folder in a root directory inside .zip file

I'm using Fedora 17 and bash as my shell. I have a specific zip file, which has just one folder in it's root. I.e. upon unpacking the zip file i see the following: > unzip myzip.zip> ...
3
votes
3answers
2k views

unzip how to trim top directories

I have a zip archive. The unzip -l myarchive.zip command gives this listing: top/subtop/files/1.txt top/subtop/files2/2.txt etc The root folders are top/subtop for all files. How to extract those ...
0
votes
1answer
736 views

Unzip file with underscore in linux?

I'm trying to unzip a file in redhat but I keep getting this when I run unzip filename.zip heckdir error: cannot create file_name unable to process file_name/bin/. I'm guessing ...
26
votes
1answer
39k views

How do I unzip a tar gz archive to a specific destination?

I want to unpack a .tar.gz file to a specific directory. The archive file is in /root/Documents. I want to unzip it into /root/Desktop/folder. The folder structure in zipped file should be preserved ...
5
votes
1answer
2k views

Unzip returns “Unsupported compression method 14”

I recently downloaded a large number of GIS data files from a government agency to a file server and need to unzip all of them via the command line. However, unzip filename.zip is returning ...
3
votes
3answers
233 views

How to pass a file that changes name to another command in Bash?

I frequently use wget to download tarballs and zip files from the web, then either untar then or gunzip them. I do: wget google.com/somefile.zip unzip somefile.zip rm somefile.zip Is there a way ...
2
votes
2answers
1k views

Extract a zip file to your own directory

Im trying to extract the contents of a zip file but I want to extract it to my own directory. I'v tried -d from unzip but that just puts the contents of the zip into that directory. But I want to ...
1
vote
1answer
2k views

Trouple unzipping a 4GB .zip file on CentOS 5.5

I am in the process of moving from a windows to a linux box. I zipped a folder of images on the windows box and ftpd it to the linux box. When I try to unzip the file I get: error: Zip file too big ...
0
votes
1answer
523 views

How to unzip a windows-built .tar.gz in linux?

i wanna transfer files from my windows pc to linux server. suppose i have a file structure like this: img / logo.gif css / style.css index.php i tar.gz the directory, then upload, and then ...
1
vote
1answer
576 views

uncompressing .zip file in linux

I have a .zip file (It contains multiple files, ex: file1.txt file2.txt file3.txt.. n so on) in a directory. And my query is: How to extract the files from .zip archive to the very same directory ...