Zip is a file format used for data compression and archiving.

learn more… | top users | synonyms (1)

2
votes
3answers
884 views

Zip contents of some subfolders but not others

I would like to use the unix zip command to zip a directory. Let's say the directory is structured as follows: dir1/ dir1/dir2/ dir1/dir2/file1 dir1/dir2/file2 dir1/dir3 dir1/dir3/file1 dir1/file1 ...
3
votes
1answer
6k views

unzip to a specific folder

I want to unzip the contents of a zipfile called mine.zip into /yours/ but when I do it using the -d flag it keeps going into /your/crap/ etc which is not I want Is there a way to do this?
5
votes
4answers
3k views

Is it possible in unix to search inside zip files

I have 100s of directories and within those I have a few zip files. Now there are images named abc.jpg in those zip files. The zip files may be in any folder or in any subfolder so its difficult to ...
6
votes
4answers
2k views

Copy a File From One Zip to Another?

I have a file named 'sourceZip.zip' This file ('sourceZip.zip') contains two files: 'textFile.txt' 'binFile.bin' I also have a file named 'targetZip.zip' This file ('targetZip.zip') contains ...
25
votes
7answers
145k views

How do I zip/unzip on the unix command line?

How can I create and extract zip archives from the command line?
5
votes
2answers
8k views

Excluding a directory when zipping files

I've got a bash script that does something like this: zip -0 ../backup/backup.zip \ -r ./* \ -x \*CVS\* \ -x *Thumbs.db* \ The directory it's backing up is a SVN archive (it used to be CVS back in ...
12
votes
5answers
1k views

How to de-unzip, de-tar -xvf — de-unarchive in a messy folder?

Usually, I unarchive things by $ mkdir newFolder; $ mv *.zip newFolder; $ cd newFolder; $unzip *.zip but sometimes I get lazy and just do in an arbitrary folder $ unzip *.zip so time-to-time messing ...
2
votes
1answer
1k views

How to zip individual files from different directories in one line?

I want to zip numerous files from different directories(paths) in one line. How can I do that?