Compression and archive format that stores one or more files into a single file, usually with a .zip file extension.

learn more… | top users | synonyms

1
vote
1answer
181 views

Linux unzip: don't prompt user

I need to unzip a file in my nodejs script: var exec = require('child_process').exec; var execOptions = { timeout: 15000 }; exec('bash unzip.sh', execOptions, function (error) { ... }); In ...
2
votes
3answers
4k views

Terminal unzip outside default directory

Using terminal command "unzip" seems to be extremely useful when deploying a CMS to a remote server, since you can transfer a zip and unzip it remotely. However, I cannot find a way to unzip the all ...
0
votes
0answers
25 views

Replace zip with truncated version

I have multiple zip files structured like blah1/blah2/blah3/dirs/files where the blah directories are single folders, and multiple folders and files reside in the dirs and files levels. Is there any ...
3
votes
3answers
2k views

Is there a solution to the zip/cpgz cycle after downloading from Dropbox to Mac?

I've downloaded a file to my computer from Dropbox and am now suffering a zip/cpgz cycle! Instead of unzipping the downloaded zip file, my iMac converts it into a cpgz file and when I click to open/...
10
votes
3answers
14k views

Unzipping file whilst getting correct permissions?

I unzipped a file on my server using: unzip filename However this seems to have caused all the files having owner/group permissions of 0 0. The files I uploaded were a PHP software script, so I'm ...
1
vote
1answer
62 views

Unzip files in alphabetical order

Is there anyway to unzip to stdout in linux by alphabetical order? I am unzipping to a fifo file and the files are coming out of order
68
votes
3answers
3k views

Windows File is ludicrously huge and I cannot unzip it

I use an online file backup service (Backblaze) and recently got a new computer. Several files on my old computer were too large to move via my usb drive so I decided to download them from my backup ...
0
votes
2answers
51 views

How can it be that a ZIP file contains multiple files with the same name in the same subdirectory?

I had been extracting Free Pascal source code into an empty directory using Midnight Commander (under Mac OS X, which does distinguish between lowercase and uppercase AFAIK) and have been asked if I ...
2
votes
0answers
77 views

How to zip up folder contents and save the zip files inside the original folders

I have a large folder containing a lot of folders. How can I zip up the contents of each of the subfolders, and save the resulting zip files inside the respective subfolders for which each archive was ...
0
votes
0answers
1k views

is it possible to unzip z01,z02… without .zip?

I have multiple z01,z02, but missing a zip file. Is it still possible to unzip? If not, is there any repair tool that you recommend?
0
votes
0answers
1k views

Missing “Send to compressed folder” option. Anyway to restore?

Prior to Windows 10, there was a "Send to compressed folder" in the File Explorer. Is this really no longer there? Any secret switch to turn it back on? Not a fan of installing 3rd party hacky ...
28
votes
2answers
29k views

How to list the contents of a zip along w/ file sizes and compression ratio via cmd line

How do I list the contents of a zip along w/ file sizes and compression ratio (or packed size) on osx w/ command line tools?
3
votes
2answers
6k views

Large zip files content is corrupted when unziped using windows explore

We have a large zip file (25GB) containing mosty pdfs and png files. (about 150000 files) When we unzip the file using windows explore some of the content is corrupted. Some png files shows content ...
1
vote
0answers
44 views

Serve auto-generated zip files with small footprint

I currently use mod_zip/nginx(for automatically generating zip files). The (very very big) issue with mod_zip is - when it accepts range requests - it doesn't pass ranges to subrequests. What ...
1
vote
0answers
15 views

Extract file from corrupt archive

I am trying to extract a single large file from a multipart zip archive. The file contained is correctly identified by pretty much any tool used, but I didn't have much luck in extracting it. Any ...
0
votes
3answers
236 views

Zip a folder on a daily basis (mac)

I have an online backup utility (zipcloud.com) And i scheduled an upload of projects folder every day at 12pm. Thing is my projects folder contains a lot of files so i thought the best I could do is ...
0
votes
1answer
45 views

How do I alter this “Zip multiple files” script (mac os) to remove the extension from the output?

I use this script to zip multiple files into individual zip files (though an automator service, so Bash) for f in "$@" do zip -j "$f.zip" "$f" done it works perfectly BUT, the zip file has the ...
0
votes
0answers
30 views

Self extracting Zip file using php

I want to create a Zip file using PHP and once after double click on that zip folder it needs to extract and execute the .exe file in it . how i can do this please suggest me.
3
votes
2answers
2k views

Can a zip file be executable?

Can a zip file executable? For instance can you have a virus in the form of a zip. Obviously a virus could be inside a zip file but can the actual zip execute? The reason I ask is I have a website ...
0
votes
1answer
120 views

How to zip folder to odt format

I extract .odt(open office) file and make some manipulation on it. And then when I want to zip file back I have an issue. for example if I enter to the directory with unzipped odt file and I do ...
8
votes
6answers
7k views

Which archiving method is better for compressing text files on Linux?

In my application I need do compress of logs that are text files. Seems that bzip2 and gzip have the same compression ratio. Is that correct?
17
votes
5answers
19k views

Is there a way to edit files inside of a zip file without explicitly extracting them first?

I sometimes need to make changes to a .zip or .jar file, so I usually move the file to /tmp, extract all the files with unzip, edit a few files, and then re-zip up the files. This works, but it can ...
4
votes
1answer
4k views

How to zip a list of files in Linux

I have many files I need to zip into a single directory. I don't want to zip all the files in the directory, but only ones matching a certain query. I did grep abc file-* > out.txt to make a ...
0
votes
0answers
22 views

How to completely password protect a zip file [duplicate]

I have 7-Zip and Total Commander installed - both can create ZIP files with password protection, but it's applied only to files inside, opening of the ZIP file itself happens actualy without the ...
0
votes
1answer
37 views

how to zip a directory with its files using Terminal on Mac

i am trying to zip a folder with files in terminal using zip -r myzipfile.zip myDir but this doesn't include the files What should i do ?
1
vote
1answer
202 views

How to zip a folder recursively, but only selective files, in Windows?

For example, I have this directory structure: [C:\] + [Documents] + [Work] + [Presentation] - Presentation A.pptx - Presentation B.pptx - Presentation C.pptx - ...
0
votes
1answer
73 views

7zip tries to compress files and folder outside of the path

I use the command line of 7zip, 7za, to compress a folder, on Windows web server 2008 R2. 7za.exe a -tzip -r %nome_file% "C:\inetpub" I expect it to compress everything inside the folder "inetpub, ...
1
vote
3answers
1k views

Windows 10 changing .zip file association

I have 7-zip installed and it hasn't changed the default file associations. I've changed the associations for .rar and .7z, but I can't find a way to change .zip. I looked in Default Programs\Set ...
1
vote
0answers
30 views

Embedding zip file in word which is “Restricted”

i have a word document which is protected. (Protect Document -> Restrict Access -> read access to all users). This is to stop users from copying the contents. So far it's fine. But when I'm trying to ...
0
votes
0answers
87 views

Cannot unzip file created from stdin pipe on Mac

On Linux I created an image of an sdcard on a Linux system and zipped it with the following command: dd bs=1M if=${device} | zip ${outfile} - I created the zipfile this way because there isn't ...
-1
votes
1answer
50 views

Create multiple zip files

I have a bunch of files that I would like to zip, I need a script to recursively run through a directory and find all files with name test*.txt as an example. That is the easy part, so I have used ...
50
votes
2answers
82k views

Linux unzip command: Option to force overwrite?

I am writing a shell script that unzips a ZIP file into an existing hierarchy of files, potentially overwriting some of the files. The problem is that the unzip command asks for confirmation: replace ...
0
votes
1answer
44 views

Unzipping results in a file, not a folder

I zipped 6 files (total size = 2gb) using gzip -c myfiles_* > ~/myzip.gzip on server A and got my friend to copy this server to server B. Now I've learned that the file is supposed to be named .gz ...
1
vote
1answer
99 views

7-Zip command line - do not extract certain file types

How do I extract all the files in a 7-Zip .7z archive EXCEPT certain file types, using the 7-Zip command line? Example: backup.7z contains files of type: .xls .xlsx .doc .docx .pdf .txt .png .gif ...
2
votes
1answer
146 views

Batch Script for backup

I need a batch script that will zip up all files in a particular directory and save it to another directory in a YYYY/MM/DD-HH/MM/SS format. I've seen things similar but not sure about this. Thanks!
7
votes
5answers
3k views

How is it that during extraction of a zip, I get two files of the same name in the same path?

I'm extracting a zip (self-extracting, but that probably doesn't matter) and for a few files I'm getting a dialog asking me if I want to replace a file that was already extracted with a file that's ...
1
vote
2answers
5k views

Can Not Start Glassfish 4.1 Server, Download, Unzip, Install, Windows 8.1

Before I start I wanted to say, I have to put a space in many of the links because I am new to superuser & have restrictions. You'll find the spaces http:// (HERE) localhost:4848/. I'm sorry for ...
1
vote
3answers
162 views

Is there a way to download parts of the content of a zip file?

If there is a big zip file uploaded on a server, and all you need is some of it's content, is there a way to open it, and choose what you want to download?
0
votes
0answers
32 views

Execute command triggered by Unzip?

I know this is a long shot (and probably a juicy attack surface), but is it possible to execute a command or script in a ZIP archive triggered when the archive is extracted? In this question, I'm ...
14
votes
9answers
28k views

Extract large zip file (50 GB) on Mac OS X

I was trying to move the files to another hard drive. So I archived all my photos in one large ZIP file using the Mac OS X built-in compress function. But the file failed to extract. I've tried ...
2
votes
1answer
23 views

Does any version of Windows support uncompressing splitted archives natively?

I mean, are multi-volume .zip archives, or maybe any other kind of archive format, natively supported without any third-party application like 7Zip or WinRAR?
0
votes
1answer
208 views

Running ZIP Process in Background in CentOS

How can I run the following command/process in background immediately after starting it: zip -r file.zip directory/* What I actually want to do, is to run the zip process working even after exiting ...
0
votes
1answer
703 views

Recursively compress files in a directory and subdirectories using command line “zip” tool in Mac OS X and exclude .DS_Store files from ALL subfolders

I'm trying to create a ZIP file using the command line zip tool that comes with the Mac OS X Terminal. I want to recursively compress the contents of the current folder but excluding .DS_Store files. ...
1
vote
1answer
142 views

How do you know the size of a 7zip compressed file?

With an archive file, I can only ever find the size of the file before compression, its original size, which I know. What about the size of the new, smaller compressed size?
2
votes
0answers
43 views

Zipping a text file with sha256 hashes seems too efficient

I have an ASCII-encoded text file where each line has the following structure: XYplorer nn.nn.nnnn [yyyy-mm-dd hh.mm.ss] [S256 S256].zip ↑↑ ↑↑ ↑↑↑↑ ↑↑↑↑ ↑↑ ↑↑ ↑↑ ↑↑ ↑↑ ↑64× ↑64× so a ...
0
votes
1answer
142 views

“recompress” a 7z archive inline

I have a rather large (~500GB) 7-zip archive. I originally made it when I had more space available, and did so at rather fast, low-compression settings. Now things are tight, and I'd like to try and ...
0
votes
0answers
42 views

How can I split a series of concatenated ZIP files back out into individual files?

I have a series of complete, standalone zip files which have been concatenated together through a serial device; for testing purposes, one might think of cat 1.zip 2.zip 3.zip >all.zip. Now, given ...
9
votes
5answers
9k views

How can I control the order of files in a ZIP archive?

There are times when it is necessary for the files in a ZIP archive to be in a specific order (for example, I'm currently creating EPUBs, which require that the first entry in the ZIP be the mimetype ...
1
vote
1answer
74 views

7zip : Set archive's LastWriteTime as old as the content

On windows, with 7za.exe v9.38, how can I set the archive's LastWriteTime (or CreationTime) same as the content? For example : I have a "toto.txt" file, created and last written on 01/01/15. 7za.exe ...
0
votes
0answers
25 views

Big encrypted zip and bad sector

I've got one big (11.6 GB) file in encrypted zip. But I've lost 4096 bytes (one sector) near 1 GB from begin file. I copy it by "dd ... conv=sync,noerror". I can decrypt 916 MB of file but then it ...