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

learn more… | top users | synonyms (1)

0
votes
1answer
41 views

Unrar multiple parts

I need to unrar a file consisting of multiple parts. The folder structure looks like this: file.part01.rar file.part02.rar file.part03.rar I've installed p7zip. When I try: 7z e file.part01.rar ...
0
votes
1answer
24 views

adding unzipped files to a zipped folder

I'm trying to add unzipped files to an existing already zipped folder say new folder.zip. Is it possible to use zip -r new folder.zip after adding some unzipped files to them. Will this command ...
2
votes
2answers
35 views

Unzip into directory, independent if directory is contained in ZIP

Let's assume I've a ZIP file whichs content may look like # file: with_out_dir.zip file1.txt file2.cpp file3.js some_sub_dir/ - file_in_subdir.txt file4.xml but it may also look like this # file: ...
0
votes
1answer
44 views

moving files to a folder and zip the folder

I have to zip a few files induvidually from folder A and move them to folder B on the same directory which takes lot of time. So I thought of moving all those files to be zipped to a new folder(c), ...
0
votes
1answer
26 views

I have moved a zipped file to a directory which does not exist [duplicate]

I have moved a zipped file to a directory which does not exist. It resulted in creating a new file. But I am not able to open/unzip it.
0
votes
2answers
35 views

Automatic extraction of zip files like in osx

In Mac OSX if you have downloaded a zip/gz/bz2 file, and you double click it in Finder, then the archive is automatically extracted for you in a subfolder, which I find very nice. I am wondering if ...
2
votes
1answer
208 views

Zip does not compress files when zipping

I have zipped a file recursively in a directory. But what I notice with these last few zips is that the files do not get compressed. adding: ...
3
votes
1answer
51 views

Recover the content of a Firefox .part file?

The question says it all, I have a <filename>.zip.part file in my Firefox download directory which is ~150MB and I'd like to recover its content. The original file was a very large zip archive ...
0
votes
1answer
39 views

Unzip (Info-ZIP) Permissions

Is there a way to invoke unzip (from Info-ZIP) on a Linux system without having it restore the permissions stored in the zip file? The zip files I'm restoring are enormous, so going back over the ...
4
votes
3answers
57 views

Is it possible to view the list of file names of a zip file which is inside another zip file?

I know I can use unzip -l file.zip to view the file list of a zip file. But a got a zip file inside another zip file. I tried unzip -l file.zip/sub_file.zip, but failed. Is it possible to view the ...
5
votes
1answer
80 views

Is it possible to fake destination directory path with zip?

Given a bunch of files in the current directory, I want to be able to zip them such that, when extracted, they'd be placed in some given directories. For example, say I have these in $PWD: ls fsck xz ...
-5
votes
3answers
79 views

zip -r v/s zip -R

What is the difference between -r and -R in zip command. Obviously, I have googled about it. Also, I have referred this in quest of finding the difference, but didn't got clarification. Can anyone ...
4
votes
0answers
72 views

How come zipping a created disk image, makes smaller files than piping?

Case 1. I use dd to create an image: dd if=/dev/rdiskx of=/path/to/image bs=1m. It's 16 GB in size. I zip it, and it's suddenly around 100 MB. Case 2. I use dd to create an image, piping it ...
1
vote
1answer
17 views

Unzip all non-existing or older files from archive

The behaviour I'd like with unzip is to extract all files, overwriting any that are older than those in the archive, not touching any that are the same age or newer, and to never prompt. The options ...
6
votes
2answers
218 views

Is there a way to convert a zip to a tar without extracting it to the filesystem?

Is there a way to convert a zip archive to a tar archive without extracting to a temporary directory first? (and without writing my own implementation of tar or unzip)
1
vote
4answers
108 views

Why can't tar extract .zip files? [closed]

I tried a majority of the formats (gzip, etc.) to extract a zip file with tar, and when I became frustrated enough to Google for it, I found no way to extract a zip file with tar and only ...
1
vote
1answer
60 views

Does “freshening” a zip file with the -FS option change the modification time of the file?

I have a zip file that I use as a backup for my work. I use the "freshen" option (-FS) whenever I want to update my backup file. However, the file shows the date of last modification as being the ...
0
votes
0answers
65 views

zip command is failing during high memory usage

We have several perl scripts, which generates and emails reports. The script that emails the files expects a .zip extension. The report scripts generates a .txt or .xls file and then runs the ...
0
votes
1answer
65 views

Pass list of folders to zip command

I have a folder which contains lot's of folders in it. I don't need to zip all of them and I have a list of folders that need to be zipped in a separate file The folder list is in the following ...
5
votes
2answers
504 views

How to zip a file and save it in another directory

How can I zip a file and save it in another directory using the command line? I have no space left in directory (100% full).
0
votes
1answer
120 views

Error unzipping file through ksh, unzip works through bash

I have an auto-generated zipfile foo.zip on a Red Hat server that needs to be extracted to a particular location /bar. This is done through an install script using ksh. When the script executes unzip ...
0
votes
1answer
217 views

Error when unzipping a file

I am getting the following error when unzipping a file unzip user_file_batch1.csv.zip Archive: user_file_batch1.csv End-of-central-directory signature not found. Either this file is not a ...
1
vote
1answer
1k views

How can I ignore “zip warning: name not matched” when using zip command with -d option?

I am creating an sh file to run multiple commands in the background. At some line in this file, there is a command to update a zip file like: zip -d archive.zip file.txt This file.txt might not be ...
4
votes
3answers
174 views

Bash: Zipping/grouping files by common substring

I have about 100 files. They are named like this. 3000_ABCD_XXXXXXX.csv 3000_ABCD_YYYYYYY.csv 3000_ABCD_XYXYZYZ.csv 3000_EFGH_XXXXXXX.csv 3000_EFGH_YYYYYYY.csv 3000_EFGH_XYXYZYZ.csv ...
0
votes
1answer
21 views

Working with the option -x in zip

I can't manage to figure out the -x option in the command zip. I want to compress a working folder to save it as a backup, but I have some files and a directory that contains huge files that I don't ...
2
votes
1answer
74 views

Can p7zip create smaller zip files than winzip?

7-Zip for Windows creates smaller zip archives than WinZip, so presumably P7zip can create smaller zip archives than Zip in Linux. So how do I create zip files using P7zip in Linux?
2
votes
1answer
53 views

How to list files in a zip without extra information

en I use unzip -l test.zip I get the output like this: Archive: test.zip Length Date Time Name --------- ---------- ----- ---- 810000 05-07-2014 15:09 file1.txt 810000 ...
-1
votes
2answers
356 views

Sending zip file containing plain txt file via email

How to send a plain txt file in a zip file via email in unix? The contents in the txt file should be word wrap.
2
votes
3answers
60 views

How to know the path to a specific file in a zip archive, without extracting it?

I only know the filename but not its exact location. I would like to extract only that file from the archive. And I need to know its location in the archive.
6
votes
4answers
369 views

How to only zip the files of a specific user?

I like zip, it's simple, but recently I came with the need of only zipping the file owned by one user in a directory. I read the manual and I can't find any option to for example do things like: ...
2
votes
2answers
117 views

Compress zip files with higher compression

I have a large number of zip files that were compressed using the zip command. I would like to recompress them with the -9 flag to improve the compression ratio. Does anyone know if that can be done ...
1
vote
4answers
898 views

Extra-bytes error when unzipping a file

When I enter unzip ../founation-latest.zip, it outputs this: warning [../foundation-latest.zip]: 248 extra bytes at beginning or within zipfile (attempting to process anyway) The file is 138KB. ...
0
votes
1answer
1k views

Depsolving for php-pecl-zip

I'm having trouble getting rid of my depsolving errors, and I've been left to figure this one out on my own. It all started when I wanted to upgrade from PHP 5.2 to PHP 5.3 (heaven forbid), and I was ...
1
vote
2answers
257 views

Text substitution inside compressed files

I have several zip files, each one having several text files inside them. I want to substitute all occurrences of a in these text files with b, and leave them zipped with the same structure. If I ...
2
votes
1answer
486 views

Find & Delete directories in .zip files

Question 1 : In many .zip archive files I would like to delete directories anwsering to a name pattern. In a "normal" directory I used : find . -type d -name "pattern" -mtime +30| xargs rm -r Is ...
0
votes
1answer
101 views

Order a list of files, by date modified, then unzip them in that order

I have a list of zip files, that must be extracted by date modified, they contain updated images and the strange way the local mls provides them means that newer zip files container newer versions of ...
3
votes
4answers
1k views

How to zip recursively all subdirectories that only contain text files

I have a backup from a disk that contains data files and analysis. The dir structure and names are not really consistent. To save space, I would like to zip all the subdirs that only contain data ...
2
votes
1answer
123 views

tar.bz2 7zip selective extract prformance

We use tar.bz2 as our archive of server logs. We also write tools that selectively parse these archived logs. Many times I must regex-search one file’s lines in the archive to determine if other ...
2
votes
2answers
153 views

How to use `expect` with `zipcloak`?

I create a zip file using zip which includes several files and directories, named test.upd. Now I want to use expect to automatically handle the password encryption. Here are two bash scripts, both do ...
2
votes
1answer
543 views

Facility on AIX to ZIP a list of files

I'm working with an external company who is using AIX (version unknown) as their platform. They are required to FTP me a ZIP file containing multiple files. Does the UNIX utility zip exist on a ...
0
votes
3answers
409 views

unzip a directory in unix [closed]

I tried to unzip a folder in Unix: $ unzip sample.zip This is creating the root structure a/b/c/d/e/f/sample. Please advise. I need to unzip a folder in the current directory.
3
votes
2answers
339 views

Create Zip for each subfolder but containing only matched files

I am trying to figure out how to create a zip file for each subfolder containing only files that match my criteria. For instance I have: Folder1 Folder2 Folder3 Each folder contains the same set ...
1
vote
1answer
653 views

extract only a specific folder Contents from a zipped archive to a given directory [duplicate]

This is very close to the SO How to extract only a specific folder from a zipped archive to a given directory? I need something close but I always get the folder with the contents, not it's contents ...
1
vote
2answers
959 views

Having trouble uncompressing a few files [duplicate]

So I have to uncompress 4 different files. When I do file file1 file file2 file file3 file file4 for example, different messages are displayed. For example one starts like "gzip compressed data, ...
2
votes
3answers
201 views

zip a directory that name start with `-` [duplicate]

How can I zip a directory like -foo? $ zip "-foo" "-foo" shows only help page. I think -foo is recognized as a options, but I don't know how to solve it.
8
votes
1answer
367 views

Do any archive utilities exist that can preserve the date created file attribute on NTFS-3G?

I tried the -X switch on zip, but that did not save the date created attribute. I can get it using this method. When a file is added to a zip archive using 7-Zip, it preserves the date created and ...
4
votes
3answers
3k views

speed up gzip compression

Is it possible to speed up the gzip process? I'm using mysqldump "$database_name" | gzip > $BACKUP_DIR/$database_name.sql.gz to backup a database into a directory, $BACKUP_DIR. the manpage ...
0
votes
1answer
254 views

Does zip's -u flag pay attention to deleted files?

This website about Linux's zip utility says this about the -u flag: Replace (update) an existing entry in the zip archive only if it has been modified more recently than the version already in the ...
2
votes
2answers
683 views

Zip folder without including path to folder and require only one argument

I'm trying to make a zip function that'll do all the steps I typically do when zipping a file or folder. Say my current directory is ~, and I want to zip a folder named Folder1, whose file path is ...
2
votes
2answers
325 views

Junk a part of the directory with unzip?

A zipfile f.zip contains a bunch of files all with directories. A/B A/B/C A/B/C/D .. A/B/C/D/and/some/more/dirs A/B2 Now I'm only interested in the tree below C/D. I can do unzip f.zip */D/* ...