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

learn more… | top users | synonyms (1)

-2
votes
1answer
24 views

Regular expression in unzip files argument not working

I'm trying to view the contents of a zip archive using an extremely simple regular expression. This works: rmorton@Rockette:~$ unzip -l Downloads/WeiDU-Linux-236.zip "*/i386/tolower" "*/i386/weidu" ...
4
votes
2answers
42 views

Unzip source arguments

To copy a bunch of zip files from one location to another: $ cp *.zip destination/ To unzip a bunch of zip files to a directory: $ unzip \*.zip -d destination/ man unzip says: The backslash ...
0
votes
3answers
56 views

what the best approach in order to compress directory with Hundreds of sub directories [closed]

Under /usr/cti/APP_sys, I have hundreds of directories and subdirectories and files, etc. I wonder what the best approach in order to compress the /usr/cti/APP_sys directory (get the best low ...
1
vote
1answer
22 views

how to unzip/uncompress segmented zip files? [duplicate]

I downloaded a document, which is compressed as zip file and segmented, their names are : document.z01 document.z02 document.zip I'm at a loss on how to unzip them.
1
vote
2answers
24 views

Unzip error, is recovery possible?

I compressed 4 separate folders with some wedding videos (!!) a few months ago. Today I tried to unzip them, and had no problem with the last 2, but the first 2 of them show an error: ...
0
votes
2answers
42 views

gunzip command not woriking for unzipping the file

I am trying to unzip a file and I am getting below error. am using gunzip -c filename command. gunzip: DEX_DWH.zip: first entry not deflated or stored -- use unzip Adding points : 1. I don't want to ...
6
votes
1answer
185 views

Zip Archive With Limited Number of Files

What command can I use to create zips with a file number limit? I have a folder (no subfolders) of, say, 5000 files, so I would want a command that could divide that number and create 10 individual ...
1
vote
1answer
27 views

I am repeatedly zipping the same folder of files, but the shasum keeps changing

I am zipping a folder and fingerprinting it with its shasum however this keeps changing on every zipping. Same with md5 any idea why? Is it working based on access time or something? Is there a way to ...
2
votes
1answer
74 views

Convert a Windows-created ZIP to Linux (internal paths issue)

I have a .zip created on a Windows machine (outside of my control). The zip file contains paths that I need to preserve when I unzip. However, when I unzip, all files end up like: ...
-2
votes
1answer
50 views

7z command for unzip -p -a [duplicate]

I have a command line execution in my .sh file which unzips the file which is in zip format. Below is the command which unzips the file unzip -p -a. elif [ "${FILECOMMANDOUTPUT}" = "Zip" ] then ...
-2
votes
2answers
265 views

Corresponding 7zip command for unzip -p -a

I have a question regarding unzip command in Unix. As of now my Unix command unzip -p -a is able to zip the file which are lesser in size. But if the file size is larger then the command is not able ...
0
votes
1answer
20 views

archive a directory and its content to a zip archive

I ran zip book my/ it created a zip file book.zip, but with only my/ as its content, and nothing under its my/, but there is content under ./my/. I wonder how I can zip it correctly?
0
votes
1answer
85 views

Can we preserve the timestamps of files when extracting .zip archive?

I want to unzip a .zip archive, and preserve the timestamps of the files extracted. But this command doesn't preserve the timestamps: unzip my.zip I saw this post in 2011, and wonder if there is a ...
0
votes
2answers
35 views

How to package separately located files into a same folder structure?

When I use zip to pack files from different locations, like: zip pack.zip /home/jack/jack.txt /home/jim/jim.txt The files would be stored in "pack.zip" as the following structure: ...
0
votes
1answer
146 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
40 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
46 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
81 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
35 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
48 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
228 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
100 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
149 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
77 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
99 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
88 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
1answer
84 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
22 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
375 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
371 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
99 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
80 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
99 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 ...
6
votes
2answers
1k 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
176 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
2k 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
2k 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 ...
5
votes
3answers
225 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
27 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
80 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
62 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
601 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
61 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
417 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
149 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 ...
2
votes
4answers
1k 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
2k 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
404 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
945 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
152 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 ...