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

0
votes
1answer
62 views

Can I mount a (zip) archive in cygwin?

I do not see any example in http://www.cygwin.com/cygwin-ug-net/using.html#mount-table =
-2
votes
1answer
115 views

Read the contents of a zipped file without extraction just 1 level?

unzip options -t and -l lists entire zip, even sub directories. Is there an option of unzip to read contents just 1 level ? It should list immediate contents of zip. It should not list contents of ...
1
vote
2answers
276 views

Recursively zip files into .cbz-files based on folder in command line

I'm trying to figure out how to write a script to automate creating .cbz files from images in folders on OSX. My directory tree will look like this: /toplevel/ cbz/ comics/ Comic1/ ...
0
votes
0answers
117 views

How to extract multiple zip files with possible duplicate file names in a single folder

I have a list of many zip files(with duplicate names) that need to be downloaded(maybe by wget) each of them contain a single file , I need to extract all of them into a single directory , but due to ...
5
votes
4answers
4k 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 ...
0
votes
1answer
197 views

Fixing truncated *zip with Terminal, keep getting stuck

I have a *zip containing a lot of pictures from the past year, and it compressed incorrectly and is missing its end statement. I've been using "zip -FF" in Terminal, but it keeps getting stuck on a ...
0
votes
0answers
163 views

Edit Zip files recursively using VI editor

I have a use case in which I want to edit a file using vi editor which is bundled inside a war package and the war package is bundled inside an ear package. I am on a linux machine Oracle Enterprise ...
1
vote
1answer
648 views

How to compress only files without their parent directory?

I'm trying to compress files in a directory. Let's assume the directory is "test". when I execute the following command and unzip the file, I get "test" folder and files inside the test folder. zip ...
1
vote
1answer
184 views

Search for two strings within zip archives

Hope someone can help. I have a series of zip files. These zip files contain email files (.eml) I need to find all files between two people. I can find on of them easily using an answer I found in ...
0
votes
2answers
540 views

Zipping Epub: Mimetype file should contain only the string “application/epub+zip”

I followed this tutorial to create an epub file. The mimetype file only contains application/epub+zip and should not be compressed. However, the zip commands that were recommended to achieve the ...
0
votes
4answers
164 views

Does archive size of tar, zip and rar effect the time it takes to delete a file from it?

Does it take a longer time to delete files from a large tar zip and rar archive than a smaller one? I would think that for a file to be deleted from an archive, all the data that exists after the ...
0
votes
0answers
75 views

Empty .zip file at end of Windows Backup & Restore backup

I have a Windows 7 or Vista computer that was backed up onto an external drive (WD Passport) using Windows Backup & Restore every week for almost a year. Now I am viewing these files on a Windows ...
2
votes
0answers
66 views

Cross-platform owernship of files in a .zip folder

I have a PHP app that creates a .zip folder out of files that are restricted to specific groups using ACL, then submits it to the user to download. Specifically, everyone is allowed to read them, but ...
1
vote
1answer
23 views

Zip images in directory

I have a directory of directories. Each directory contains ~100 images. I want to create a zip for each directory. How can I do that?
3
votes
3answers
342 views

Display deflation percentage of tar command (like zip command)

This question may sound weird but I would like to know if there is a possibility to display the deflation percentage of the files processed in the tar command. I use this command tar -cjvf ...
0
votes
1answer
240 views

How to create ZIPs with the content of every folder [duplicate]

I have several folders and I need to compress the content of each folder in a separate ZIP file. However, every ZIP should only contain the content of each folder and not the folder itself. The ...
0
votes
1answer
476 views

How to recursively zip utf-8 files and folders from a batch file?

I have a folder named "Attachments2". I'm working in windows 7 and am using zip.exe downloaded from cygwin to zip this folder. In this folder there are folders and files which have Hebrew characters ...
0
votes
2answers
132 views

How to create a zip file of all PDF files in different subfolders?

My directory structure is as follows: application ├── CV │   └── CV.pdf ├── Cover_letter │   └── Cover_letter.pdf ├── Transcripts │   ├── BSC.pdf │   └── MSC.pdf └── references ├── ref1.pdf ...
1
vote
0answers
135 views

How can I create a self-extracting executable from the windows command line that accepts the default install directory as a parameter?

I have tried several different methods including winzip command line and 7zip, but I cannot find a method that will let me create a self-extracting executable that will extract to a specific directory ...
1
vote
3answers
4k views

Batch file to ZIP only files in directory or sub directory

I wanted to know if possible how to create a command line to do the following - if a directory exist ZIP only the contents into a ZIP file. If a directory has sub-directories ZIP only the contents ...
0
votes
3answers
103 views

Listing files, including archive contents

Is there some method to find, from the shell, all files matching a file pattern including those inside archives (specifically: zip archives)? The simulation package "VASP" produces files called ...
4
votes
3answers
3k views

Recursively unzip files where they reside, then delete the archives

I goofed up a setting on the backup software I use. Normally I would have the files from a network share get loaded into a spare drive, compressed into zip folders, then sent off to the offsite hub. ...
0
votes
1answer
218 views

Unable to execute program from installer

I created an application (exe file) and in order to deploy it I am using two ways: Using zip file: I zipped the entire contents including executable. This method works and the end user is ...
1
vote
2answers
1k views

Check if zip file is damaged [duplicate]

How can I check whether a zip file is damaged? I know that with zip -F input.zip --out output.zip I can fix the file. But I could not find an option that only checks the file CRC. I'm using Ubuntu ...
3
votes
2answers
4k views

how to specify the unzip target directory

Is there an option on linux zip command such that I can hard code the target directory it unzips into. For example, I would like to zip ./mydir files into myzipfile.zip but I want the unzip command to ...
-1
votes
0answers
53 views

php zip two directories and retain their directories for restore [closed]

I want to create a backup script that gets all the contents of two specific directories, and retains their structure. So for example I have one directory /images/ and another one ...
1
vote
1answer
250 views

Remove __MACOSX directory in zip files by using shell

I want to remove __MACOSX directory in zip files that are made by Mac. With zip foo.zip -qd "__MACOSX/*" works well. Then I wrote like following. for file in "*.zip"; do zip $file -qd "__MACOSX/*"; ...
2
votes
2answers
655 views

Powershell Script to Find & Highlight Specific Files Based on Creation Date

I am trying to write a Powershell Script that checks a certain folder for .zip files. The .zip files contain information from certain backups. These .zip files lie within a folder tree for different ...
2
votes
2answers
426 views

Create zip files that with given size

My question is same as in Create multiple zip files that are not dependent on each other? but my idea is to add files to zip until it is of required size and continue with a new zip file for others ...
0
votes
2answers
452 views

How to recursively zip every file in each folder?

I am trying to write a batch script that when run into a folder, it takes all the files in this folder and zip them into one, then takes the remaining folders and looks into them and do the same, ...
1
vote
0answers
79 views

copy /b command size limit issue

I am using copy /b command to append two diff files in one file. This command does not work if the first file is of size larger than 1 GB. I have not found any references or help online. I am using ...
0
votes
4answers
256 views

unzip file on small drive

I have a zip file that contains many files. Each file in the zip file is about 100MB, and is compressed about 10% (IE it is about 90MB in the zip file). The whole zip file is 20GB, and I'm trying to ...
0
votes
2answers
293 views

TAR or ZIP current directory excluding the generated file

I am trying to zip or tar all the files and subdirectories in current directory and save it to the file I am zipping. The problem is that -x shitch does not work - files are being zipped and saved to ...
1
vote
0answers
137 views

force unzip to also delete any missing files

Currently when I unzip into a directory with pre-existing files, I sometimes unzip an archive to update the files, using -f or -u or -o to overwrite any clashes. However I would like the unzip ...
0
votes
1answer
1k views

Tool to disable Zip folders in Windows 7 File Explorer

Is there a tool or simple setting to disable Windows 7 Explorer from opening zip folders? There is a registry hack given in How to stop windows from opening Zip folders in the explorer view? but I ...
1
vote
0answers
13 views

Undo a file association [duplicate]

This is probably one of the stupidest things I've ever done and won't be doing again. Basically, I figured since .jar files are effectively .zip files and normally you can use explorer.exe to open ...
1
vote
2answers
101 views

How to extract such a compressed file?

I have been asked to extract a ZIP file having in it 3 tar files and each tar file contains around 3000 gz files. I had to extract the main ZIP file first then extract the tar files second then ...
1
vote
0answers
80 views

Extract all, but not to a new folder

In windows 8, there is a nice feature that allows me to extract zip archives easily. The problem is that it always save the file to a newly created folder of the same name. While I can manually ...
0
votes
2answers
302 views

How can I get my Mac to recognize a downloaded Joomla extension as a ZIP file instead of a folder?

When I download a Joomla extension to my Mac (e.g. http://www.admiror-design-studio.com/admiror-joomla-extensions/admiror-gallery) I can't upload it via the Package File option because my Mac sees the ...
0
votes
1answer
140 views

Substitute for zip command or way to zip files

I want to zip files using the zip command, but my terminal says -bash: zip: command not found Is there a way to get the zip command, or maybe use another command instead?
0
votes
1answer
229 views

Differences between DMG and various Zip-like formats?

For my everyday work, I have a few DMG files that I keep on cloud storage. At the beginning of the day, I download my DMGs, convert them from Compressed to Read/Write using Disk Utility (OSX). At ...
2
votes
2answers
3k 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. I files I uploaded was a PHP software script, so ...
1
vote
1answer
973 views

How could I portably split large backup files over multiple discs?

Context: I make backups / archives, primarily of photos. I'm experimenting with Bup, which is designed for backup to hard disk. Basically it creates Git repos which include packfiles of up to 1GB. ...
0
votes
2answers
1k views

Zip many files into several archives

Running Linux. I have a directory of around 150 large CSV files; simply doing a zip -9 on them results in a monolithic file that is still too large. I would like it to simply zip them in maybe four or ...
2
votes
1answer
273 views

filter thunderbird email by attachment type

I'm getting malware sent to me as .zip attachments that are zipped up exe files. I want to setup message filters to catch them but I can't seem to find a way to do that. I tried setting up a customize ...
1
vote
1answer
2k views

Unzip file from source to destination within user directory across multiple versions of windows

I have a source zip file which is located in a user's "My Documents" directory. It is guaranteed to always be there. I'm looking for a way to create a batch or script which will let me unzip that file ...
14
votes
1answer
7k views

Remove single file from zip archive on Linux

I have a zip archive (created automatically in a script with -j -r flags) and I would like to remove a single file from it. I tried as documented. zip -d "picture_43_9.jpg" gallery.zip but I get ...
0
votes
1answer
164 views

Cron Job in Linux

I am newbie just have a doubt, I have a Outerl.sh to be executed on every zip file arrival in FTP and get the *.sh file inside the zip file and execute that (.sh) file which present inside the zip ...
1
vote
2answers
440 views

How to make index of all files in directory, including subdirectiories and contents of ZIP files?

I need to make list of all files and folders in directory and its subdirectories, including contents of ZIP files. Is there any program that can create nice list of contents?
0
votes
1answer
376 views

Is it possible to recursively list zip file contents with 7 zip without extracting

Similar to this question I have a very large zip file which contains other zip files, folders, and files. I want to use 7-zip to extract a list of file names from it, recursing into subfolders and zip ...