Questions tagged [zip]

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

Filter by
Sorted by
Tagged with
91 votes
21 answers
159k views

Compressing with RAR vs ZIP [closed]

A lot of people are compressing files with RAR, sending compressed files with RAR and so on. ZIP is more standard and works on all platforms. Windows users have ZIP included and Linux users have no ...
120 votes
6 answers
378k views

What are the best options to use when compressing files using 7 Zip?

I often have to gather log files and upload them to a central server (Owned by another company). The central server has a size limit of the file, so I am trying to create the smallest file possible ...
jjnguy's user avatar
  • 1,857
140 votes
13 answers
481k views

Can you zip a file from the command prompt using ONLY Windows' built-in capability to zip files?

I have a batch file that outputs a text file. I thought it would be nice if I could zip it up too. This will be used in an uncontrolled environment, so I can't make assumptions about the presence of ...
Aaron Bush's user avatar
  • 1,543
53 votes
7 answers
159k views

How to restore Windows default Zip file functionality?

I recently lost the default file association for Zip files in Windows Vista (I think it happened when I uninstalled WinAce, but I can't be completely sure). How can I restore this association back to ...
Brian's user avatar
  • 790
76 votes
10 answers
81k views

Compressing folders on a mac, without the .DS_Store

Is there anyway to get rid of the .DS_Store when compressing a folder on a mac? I work on a mac and send work to clients in zip format, but always get questioned on the .DS_Store folder inside them. ...
danixd's user avatar
  • 1,494
47 votes
5 answers
35k views

Can you configure Windows to open JAR files like ZIP files without a 3rd party tool?

I'd like to be able to examine the contents of a JAR file without having to install Winzip or some other tool and without having to rename the file. Windows Explorer can open ZIP files just fine; is ...
jodonnell's user avatar
  • 605
22 votes
2 answers
107k views

Error while zipping files with unicode characters in names with Win7's "send to > compressed (zipped) folder"

When I try to zip files containing unicode characters in their names, such as © or ™, I get the following error: [Window Title] Compressed (zipped) Folders Error [Content] 'C:\Asd™.txt' cannot ...
user1306322's user avatar
  • 4,776
225 votes
4 answers
205k views

What is “__MACOSX” folder I keep seeing in Zip files made by people on OS X?

What are these __MACOSX folders I keep seeing in Zip files made by people on OS X? Some take as much as 30% of the file. What program are producing these __MACOSX folder and how can mac users avoid ...
Yada's user avatar
  • 2,491
44 votes
5 answers
82k views

tar – extract discarding directory structure

unzip has a nifty option -j, whereby the directory structure of the archive is discarded, and all files are extracted into the same directory. Is there a way of making tar work in the same way? ...
Benji XVI's user avatar
  • 543
8 votes
1 answer
22k views

How to zip multiple files into separate archives?

I admit this question was asked here before: Like Zip into separate files where the person who asked didn't specify the OS he used and received no answers. I need to separate a huge directory into ...
patrick's user avatar
  • 1,010
4 votes
3 answers
4k views

Is it feasible to crack ZIP passwords?

I have a piece of software I have to install on company laptops. The installer needs a serial to work properly, but I don't have it (my manager isn't here so I can't ask him). The installer tells me ...
t123's user avatar
  • 1,825
2 votes
2 answers
12k views

Compress a folder into multiple zip files

I'm on mac osx. 1. Is there any tool to compress a folder into multiple zip files ? 2. Is there any tool to split a compressed zip file into smaller zip files (to open individually later) ? thanks
aneuryzm's user avatar
  • 2,135
697 votes
12 answers
773k views

View list of files in ZIP archive on Linux

How can I view the list of files in a ZIP archive without decompressing it?
johnlemon's user avatar
  • 7,523
55 votes
11 answers
278k views

How do I reassemble a zip file that has been emailed in multiple parts?

I received 3 emails each containing part of a zip file. The extensions end in .z00, .z01 and .z02. (Emailed as such to get around the typical 10Mb attachment limit per email.) I have put all 3 files ...
Guy's user avatar
  • 4,117
25 votes
2 answers
21k views

Is zip's encryption really bad?

The standard advice for many years regarding compression and encryption has been that the encryption strength of zip is bad. Is this really the case in this day and age? I read this article about ...
Nifle's user avatar
  • 34.4k
25 votes
4 answers
26k views

zip: Argument list too long (80.000 files in overall)

I need to compress 80.000 files into multiple zip files. This is the command I use: zip -s 200M photos_test/* However I get the following error: -bash: /usr/bin/zip: Argument list too long What ...
aneuryzm's user avatar
  • 2,135
8 votes
2 answers
39k views

Why does a zip file appear larger than the source file especially when it is text?

I have a text file that is 19 bytes in size and having compressed the file using zip and 7zip, it appears to be larger. I had a read of the question on Why is a 7zipped file larger than the raw file? ...
PeanutsMonkey's user avatar
253 votes
8 answers
390k views

Read the contents of a zipped file without extraction?

How can I read the contents of a particular file in an archive without extracting the .zip it is contained within? I'm using the Linux command line. An earlier question asks about viewing the ...
Shrikanth's user avatar
  • 2,531
126 votes
4 answers
400k views

Zipping folders and their contents into a .zip file in Linux

How do I make a .zip file that contains every file AND every folder in the directory?
user avatar
71 votes
5 answers
80k views

Avoid unwanted path in Zip file

I'm making a shell script to package some files. I'm zipping a directory like this: zip -r /Users/me/development/something/out.zip /Users/me/development/something/folder/ The problem is that the ...
jerwood's user avatar
  • 1,497
61 votes
9 answers
108k views

How to create a zip file compatible with Windows under Linux

I need to make a zip file available to all my Windows users visitors, so I naively produced a zip file with the Unix zip command (let's call it madeinlinux.zip). It opens successfully with WinRar or ...
user avatar
49 votes
7 answers
179k views

How to make 7-Zip faster

I normally use WinRAR over 7-Zip simply because it's faster and only a little less efficient with compression. I did a few tests on different file types and sizes comparing the 7-Zip and WinRAR ...
Kefka's user avatar
  • 1,436
47 votes
5 answers
166k views

How do I create separate zip files for each selected file/directory in 7zip?

This is the internal zip packer from Total Commander: However I want to use my 7zip packer. When I select 5 files, I get 5 separate .zip archives for each selected file. How do I do that in 7zip?
Grumpy ol' Bear's user avatar
43 votes
15 answers
70k views

How to decompress a ZIP file with specified file/directory name character encoding?

I got ZIP file(s), which contains files, which filenames are in some encoding. Let's say I know encoding of those filenames, but I still dont know how to properly decompress them. Here is example ...
2ge's user avatar
  • 531
38 votes
5 answers
21k views

Why is a 7zipped file larger than the raw file? [duplicate]

Possible Duplicate: Why doesn't ZIP Compression compress anything? I tried 7zipping an .exe file but it actually became larger. Is this the expected result?
IMB's user avatar
  • 5,503
33 votes
6 answers
83k views

How can I achieve the best, standard ZIP compression?

I don't care how long it takes to compress, all I want to achieve is two things: The absolute best possible compression ratio Compatibility with standard readers, such as Windows and WinZip So ...
28 votes
6 answers
36k views

How can I create a zip / tgz in Linux such that Windows has proper filenames?

Currently, tar -zcf arch.tgz files/* encodes filenames in UTF, so Windows users see all characters spoiled in filenames which are not english, and can do nothing with it. zip -qq -r arch.zip files/* ...
kolypto's user avatar
  • 3,081
28 votes
2 answers
33k views

Tool to mount a zip/rar/* archive as a Win drive and be able to read/write as a normal device? [closed]

I'm looking for some tool that, given a zip/rar/tar/* archive file, mounts it as a new Windows drive. Some tools are WinMount or WinArchive, but I need one that allows me to write/create/delete files ...
caerolus's user avatar
  • 281
27 votes
6 answers
8k views

How can I evaluate the best choice of archive format for compressing files?

In general, I've observed the following: Linux-y files or tools use bzip2 or gzip for distributing archives Windows-y files or tools use ZIP for distributing archives Many people use 7-Zip for ...
user541686's user avatar
  • 23.9k
27 votes
6 answers
64k views

How can I test all zip files in a folder to verify if they are corrupted or not? [closed]

There was a utility a long time ago called CFAtest that was doing this quite nicely, but it has disappeared. Basically, I am looking for a similar tool (preferably graphical) that will traverse a ...
isarris's user avatar
  • 271
12 votes
4 answers
34k views

How to unzip zip archives that have more than 260 symbols in their name?

I have a big zip file (approximately 650 MB) that I want to unzip. I already shortened the name of the zip file to just 1 letter and stored it directly on the C: folder. So I can´t shorten the path ...
RoflcoptrException's user avatar
11 votes
3 answers
9k views

Is it possible to password protect a zip file created by Windows itself (without external tools?)

I normally use a tool like WinZip, 7Zip, or WinRAR to create zip files but I'm on a Windows 7 system that doesn't have these tools installed (and I can't install new apps). Outside of 3rd party tools ...
scunliffe's user avatar
  • 1,738
8 votes
2 answers
8k views

How to disable the Windows built-in zip functionality

Is there anyway to disable the built-in zip functionality without using other zip programs?
ukanth's user avatar
  • 10.7k
7 votes
1 answer
39k views

How do I do a search in File Explorer that includes subfolders of zip archives?

In File Explorer, I can enter search terms in the upper-right search box to search the current folder and all subfolders. I can also navigate the folder tree of zip archives like any other folders. ...
Kyle Delaney's user avatar
  • 1,237
5 votes
2 answers
10k views

Repack 7z files to zip files in linux

I have a directory with a lot of .7z files, I need to repack each of them as zip archive, how can I do this automatically on linux?
res1's user avatar
  • 454
5 votes
3 answers
24k views

How to extract data from a partially corrupt multi-part rar archive?

I downloaded a video that's 11 parts the other day. Today I tried to extract it but it tells me that part04 is corrupt. So I checked "keep broken files", but of course it only gave me the beginning of ...
Anthony's user avatar
  • 51
4 votes
2 answers
38k views

Unzip File: Permission Denied

I am trying to unzip a file (Facebook download-your-info zip file), but here's what I got: Is there a way I can force-unzip it? Update: I tried sudo unzip file.zip -d destination_folder in terminal, ...
Vee Hua Zhi's user avatar
4 votes
4 answers
14k views

Why does zipping a zipped file not reduce its size?

Based on the idea that a zipped file is a new binary file, why can't I reduce a Zip's size by zipping it again and again – up to a very small resulting file?
Diogo's user avatar
  • 30.5k
3 votes
4 answers
17k views

How can I recursively extract zip files on Windows including deletion?

How can I recursively extract zip files on Windows? Each zip file should be unzipped in a new subdirectory, and the zip file should be deleted afterwards. Each existing or created directory should be ...
Ewrt Wert's user avatar
2 votes
1 answer
11k views

Recursively process zip archives to extract files while discarding specific format of files

UPDATE: I noticed that many people are viewing this thread, which makes me believe that this situation is not so rare after all. Anyway, I had asked a similar/related question on SO here, which has ...
Fr0zenFyr's user avatar
  • 131
2 votes
1 answer
2k views

How to pass parameters in batch file and zip the file using 7z.exe?

I need to create a batch file as per below requirements 1) pass path1 & path2 while running the batch file exl: testrun.bat E:\ERP\test1.txt E:\ERP\header.txt 2) Need to store these command ...
abhayk's user avatar
  • 429
2 votes
3 answers
1k views

What kind of window's batch file allows zipping of ftp files?

What commands should I use to transfer a file via FTP and then compress the files in a backup directory with a filename containing the date/time for reference? I'd prefer to use batch scripting. The ...
crosenblum's user avatar
1 vote
3 answers
15k views

Windows 2003 zip from command line [duplicate]

Possible Duplicate: Can you zip a file from the command prompt using ONLY Windows' built-in capability to zip files? Is there a way to zip a file (or group of files) from the command line ...
user2367's user avatar
  • 133
1 vote
4 answers
516 views

Build Zip archive, special cases

How can I create a zip in a linux distro and - keep only the relative path to a folder - put some files in a separate folder inside the zip I need to do this in a bash script so if i just use the ...
johnlemon's user avatar
  • 7,523
0 votes
1 answer
683 views

ZIP password recovery [duplicate]

Possible Duplicate: zip password crack possible? I have a zip file to be password-recovered. I don't remember the password itself, but I remember what type (a capital or small letter or a digit) ...
noober's user avatar
  • 233
247 votes
9 answers
321k views

Unix zip directory but excluded specific subdirectories (and everything within them)

I'm trying to zip a directory (on Unix via SSH) but I need to exclude a couple of subdirectories (and all files and directories within them). So far I have this: zip -r myarchive.zip dir1 -x dir1/...
sulman's user avatar
  • 5,181
110 votes
5 answers
298k views

Create a tar file for compressing files and directories on Mac OS X

I'm new to Mac OS X and am not sure how to do this: I have three directories. I want to create a tar/zip file of them so that I can attach them to an email. Any ideas?
sagarkothari's user avatar
  • 4,995
89 votes
7 answers
154k views

terminal tool (linux) for repair corrupted zip files

I've a corrupt zip file. I've tried to repair it with zip -F file.zip and zip -FF file.zip but was not successful. Is there another terminal tool under Linux for repairing?
cupakob's user avatar
  • 1,143
87 votes
11 answers
10k views

Can zipping a file break it?

I just asked someone to send me a zipped psd file. They declined, citing that zipping a file can break the fonts. I assumed zipping a file is perfectly reversible, hence why it is commonly used. I ...
alex's user avatar
  • 4,322
81 votes
7 answers
136k views

Which is more efficient - tar or zip compression? What is the difference between tar and zip?

I'm working in Linux environment and want to know about tar and zip commands. Which is more efficient - tar or zip? I also need to know the differences between the tar and zip commands. Can anyone ...
rekha_sri's user avatar
  • 921