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

learn more… | top users | synonyms (1)

4
votes
1answer
158 views

ZIP files with size limit

Is there a command to create multiple ZIP files based on file size? So that in a folder of 600 files, totalling 1 GB, the command will create 4 zips roughly equal to 250mb. There's a similar command ...
1
vote
1answer
34 views

Unzip specific files from multiple zip files

I'm new to Unix and am trying to extract specific pattern filename from the multiple zip files. I'm using find to find the zip files, and then trying to extract files having the filename CTL in the ...
0
votes
0answers
28 views

Unrar 5.0 problem on boot - Pyload

I have problem with Unrar 5.0 when I load pyload. When pyload is loaded on boot then Unrar is not loaded (line 168): 157 24.04.2015 08:50:40 INFO Starting pyLoad 0.4.9 158 24.04.2015 08:50:40 INFO ...
0
votes
2answers
66 views

Test integrity of ZIP file?

Near as I can tell the zip -T option only determines if files can be extracted -- it doesn't really test the archive for internal integrity. For example, I deliberately corrupted the local (not ...
1
vote
0answers
27 views

sync two zip archives (with minimal I/O)?

zip itself can freshen an archive to reflect the current filesystem (e.g. -FS). It only updates zip entries with outdated timestamps. Is there a tool that updates a 2.zip file so that it becomes ...
0
votes
1answer
81 views

Is there a way to use sed or awk to filter data inside a zipped file? [duplicate]

Is there a way to use sed or awk to filter data inside a zipped file? When I run a sed or awk command and send to stdout the file created is 0 bytes.
0
votes
3answers
101 views

How do I copy the latest file from one directory to another?

I have 3 zip files in a directory. I want to copy the most recent version to a backup directory. My code works fine for .sh and other files, but not for .zip. Is there something else I have to do? ...
1
vote
1answer
66 views

Bash script to get the result from rsync transfer and zip it as a directory in the original directory

OK, I guess this is weird. I have a small stage.sh script very simply has a bunch of commands: if [ "$(whoami)" == 'David' ]; then rsync -a --delete-excluded --exclude-from=.rsyncrc $(pwd) ...
1
vote
1answer
45 views

Extracting Wordpress.zip file on Linux server

I'm new to Linux and I'm currently trying to do the following: unzip the contents of wordpress-4.1.1.zip to the directory in which it is contained which is /my-test-site/wordpress-4.1.1.zip I ...
0
votes
2answers
89 views

In a shell script, How to give a variable another value after one job is done?

I'm trying to make a script which will see if the directory exists and will zip all of its contents under it according to the name/path of the directory. The farthest I could go was - ...
2
votes
1answer
819 views

Error trying to unzip file: “need PK compat. v6.1 (can do v4.6)”

I received a zip file from a bank. I get the following error when I trying to unzip it. unzip filename.zip Archive: filename.zip skipping: SOME_STUFF.pdf need PK compat. v6.1 (can do v4.6) ...
0
votes
1answer
18 views

zip command to use filename being zipped

I am trying to archive a file in a directory and use the filename of the file in the zip file name without knowing the filename. I have this command: zip -FSmT (what to put here?).zip I805_test.txt ...
1
vote
1answer
89 views

How strong is the encryption of a zip file in Linux Mint

Zip encryption has had often a bad reputation of being weak, but some would argue that a zip file encrypted using certain algorithms (such as by using AES), together with strong password, is really ...
2
votes
1answer
179 views

Zip the contents of a folder without including the folder itself

I have a directory called folder that looks like this: folder -> root_folder -> some files I want to zip this directory into zipped_dir, I tried: zip -r ...
1
vote
1answer
70 views

How to zip only files under multiple subdirectories?

I have a folder working and its structure is something like this - working/ 100/ 1/ 2/ 3/ 200/ 1/ 2/ 3/ 300/ 1/ 2/ 3/ And each of these 1 ...
2
votes
3answers
75 views

Repeatedly ziping a file that is newly created, but identical, however the shasum of the zip keeps changing

This is a followup to I am repeatedly zipping the same folder of files, but the shasum keeps changing essentially.. I am trying to add a file containing the git sha of the current commit when I zip a ...
3
votes
0answers
112 views

When I use zip, how can I display the overall progress without flooding the command line?

A fixed-length progress bar, a file or byte count, or better yet a timer showing the estimated time remaining would be ideal. zip's standard behavior seems to be to print a line for every file ...
1
vote
1answer
568 views

“zip warning: name not matched” while compressing a directory

I have a folder of around 180 GBs, I need to zip it like: zip -p password /Volumes/GGZ/faster/mybigfolder/* /Volumes/Storage\ 4/archive.zip But it says: zip warning: name not matched: ...
-2
votes
1answer
174 views

How to compress a single huge file (e.g. 200GB) file from command-line [closed]

I'd like to compress one huge file (~200GB) from the command line. no need for archiving its directory along with it, swift operation and high compression ratio preferred. What may be some good ways? ...
2
votes
0answers
311 views

Password protected zip archives open without password

I have a zip archive that is password protected in linux(the password is "secret"). However, whenever I try to open the zip file I am not prompted for a password or anything. I also have a python ...
0
votes
2answers
94 views

How to zip folder content on Ubuntu without keep the folder structure(path)

How can I compress a directory content without compress the full path folder structure too. I am using this command to zip a folder content under var/www/ directory, but when I unzip the ...
-1
votes
1answer
111 views

Unzipping several specific files out of many into a directory using the terminal?

I recently installed Linux Mint 17 on my laptop. I had Windows 7 before, and I backed up all of my data onto an external hard drive. Windows 7 crams all of your backup data into a ton of .zip folders. ...
-2
votes
1answer
113 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
80 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
71 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
74 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
98 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
194 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
292 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
37 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
366 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
56 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
448 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
25 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
727 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
132 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: ...
1
vote
1answer
1k 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
137 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 ...
3
votes
2answers
76 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
311 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
48 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
71 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
255 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
221 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
486 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
245 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
135 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
149 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
87 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
33 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 ...