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

learn more… | top users | synonyms (1)

0
votes
1answer
38 views

Compress multiple files and keep their name?

I have hundreds of .csv files that I need to compress into one file each. It should look like this originalname.csv.gz
1
vote
1answer
41 views

Unzip the archive with more than one entry

I'm trying to decompress ~8GB .zip file piped from curl command. Everything I have tried is being interrupted at <1GB and returns a message: ... has more than one entry--rest ignored I've ...
0
votes
2answers
38 views

How to redirect unzip -v output to a log file in shell script [duplicate]

I have a script that loops through all zip files in a large directory and individually unzips them. I am using the -q option in order to keep the console clean and display other monitoring info. I ...
1
vote
2answers
48 views

Extract specific file from complex war archive structure

I'm new in Unix, am trying to extract specific file(by using one command) form this kind of folder structure: .../file1.ear/file2.war/folder1/folder2/fileToExtract.txt What I do ...
1
vote
2answers
20 views

Cursor points to bottom when a zip file is opened with vim

I am trying to open a .zip file via vim. By default the cursor points to the bottom of the file once it opens. How can I bring the cursor to the beginning of the file as soon as I open a zip file? ...
4
votes
1answer
270 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
61 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
44 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
150 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
36 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
125 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
188 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
78 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
70 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
108 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
1k 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
23 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
122 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
384 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
102 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
87 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
214 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
1k 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
212 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
412 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
120 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
144 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
151 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
95 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
104 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
145 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
245 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
333 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
39 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
490 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
61 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
505 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
27 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
934 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
167 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
2answers
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
189 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
86 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
398 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
55 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
74 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
267 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
280 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
572 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 ...