Questions tagged [zip]
Compression and archive format that stores one or more files into a single file, usually with a .zip file extension.
1,167
questions
8
votes
0
answers
6k
views
How does Windows decide whether to use Deflate or Deflate64 for zipping files?
I am observing issues when trying to unzip files from C#. These files were created with the built-in zip feature of Windows Explorer (in Windows 8.1 x64).
The issues are based on the fact that ...
7
votes
7
answers
61k
views
How do I use a .DIZ file?
I downloaded a torrent that contains a bunch of .zip files and a .diz file. I'm guessing it all should get pieced back into 1 bigger zip file. Any suggestions on how to use it?
7
votes
4
answers
2k
views
How to recompress many zips on a drive?
I have a hard drive that contains many ZIP files of backups of various things. They were compressed at different points in time in different and inconsistent ways, and a lot of them use minimal ...
7
votes
4
answers
16k
views
List files inside ZIP
I've got ~50 zip files, each containing a similar directory structure but with different files inside.
Is there a way I can easily dir the contents of those zips?
I'm interested in creating a list ...
7
votes
2
answers
11k
views
Are zip files vulnerable to corruption?
One problem with backup files is that they are vulnerable to corruption. One flaw in the wrong place can cause the entire contents of the file to be lost, which can be thousands of files.
Are zip ...
7
votes
3
answers
17k
views
shell scripting - How to zip contents inside a folder without the folder itself?
I use this current command that archives the folder "folder-root" and all it's content to a file named "site.zip":
zip -r site.zip folder-root/*
Problem is - I want to zip the contents of the folder ...
7
votes
3
answers
20k
views
What is encryption loss when unzipping?
When I drag files from a .ZIP file my friend sent me, it barks:
Do you want to copy this folder without encryption?`
A problem is preventing that folder from being encrypted.
What's causing the ...
7
votes
3
answers
13k
views
How can I create ZIP64 file and test it?
I need a zip file (ZIP64) for a test case, I put a bigfile of 5GB full of zeros and zipped it, but I don't know if is ZIP64.
Should the ZIP file exceed 4Gb to be ZIP64? A 4Gb file for a test case ...
7
votes
2
answers
13k
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 ...
7
votes
1
answer
38k
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. ...
7
votes
1
answer
17k
views
"extra bytes at beginning or within zipfile," won't open file
I have an 8.3 gig zip containing tons of telescope observation data, but I can't extract no matter what I try. I've tried Archive Manager, unzip, and tried this guy's fix: http://bugs.debian.org/cgi-...
7
votes
1
answer
19k
views
Can I stop windows from "Blocking" zip files
When downloading a zip file from the internet, Windows "blocks" it. By that I mean I have to right click>Properties>and click unblock.
Is there a way to stop windows from doing this?
7
votes
2
answers
8k
views
Bash command to compress folder(s) with a password
How can I compress two folders into archive file (zip, gzip or something like that) with a password on the files?
For example I have folder structure:
rootDir
dir1
dir2
dir3
dir4
I need bash ...
7
votes
5
answers
20k
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.
...
7
votes
2
answers
4k
views
Zip file made in Powershell can't be used in Linux
I have a folder with subfolders and files. I create a .zip file via powershell's Compress-Archive.
Problem is that the file structure is messed up when opened in Linux.
Bad is the bad.zip archive ...
7
votes
1
answer
12k
views
Zip deflate percentage
using zip archive file I got:
adding: file (deflated 40%)
-rw-rw-r-- 1 lenduya lenduya 757 Jan 18 16:26 archive.zip
-rw-rw-r-- 1 lenduya lenduya 973 Jan 18 16:25 file
The question is I'm not sure ...
7
votes
0
answers
2k
views
Download zip/tar Github repository with .git metadata?
I need to download zip/tar Git repositories from Github and get not just the source but also the .git directory.
I'm aware I could use git clone, but this is for an tool that runs on systems that may ...
6
votes
2
answers
15k
views
Is there a simple, automated way to convert a large number of files between ZIP and RAR formats?
I have about 500 RAR archive files and 300 ZIP files that I want to burn to a DVD and give to someone else. I would like these 800 different archives to be in the same file format, so either 800 ZIP ...
6
votes
2
answers
4k
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 ...
6
votes
3
answers
7k
views
Find out the name of a folder in a root directory inside .zip file
I'm using Fedora 17 and bash as my shell. I have a specific zip file, which has just one folder in it's root. I.e. upon unpacking the zip file i see the following:
> unzip myzip.zip> lsmyzip....
6
votes
2
answers
27k
views
What's the difference between the .war and .zip file formats?
I've heard that they are the same, but I would like to know if the compression is always the same. Can I always rename .zip files to .war, and vice-versa?
6
votes
3
answers
28k
views
Winrar command line zip folder
I am trying to use WinRAR command line to zip folder:
"c:\Program Files\WinRAR\WinRAR.exe" a -afzip "e:\output.zip" "e:\foldertozip\"
If the foldertozip contains file, the command line works. But if ...
6
votes
2
answers
13k
views
Include empty directories in zip file with Linux
I'm trying to zip a directory a linux using the following command:
zip -r file.zip .
This works, but it isn't include the empty directories that I want to be included in the zip file. How can I get ...
6
votes
3
answers
6k
views
zip extractor reading archives from stdin
As follows from UNZIP(1L) man page
Archives read from standard input are not yet supported
Are there another CLI programs running under Linux/cygwin which can extract from zip archives reading ...
6
votes
2
answers
16k
views
In Mac OS X, how can I edit a jar file without unzipping?
How can I edit the content of a jar file without unzipping its content in Mac OS X?
7z client allows this on windows but I could not find a similar way to do this on Max OSX.
By editing i really ...
6
votes
1
answer
15k
views
How can I compare just the file contents of two zip files
I created these two zip files about 24 hours apart.
$ ls -l /tmp/*.zip
-rw-rw-r-- 1 scott scott 1401289 Mar 21 20:11 /tmp/inc1.zip
-rw-rw-r-- 1 scott scott 1401289 Mar 22 19:29 /tmp/inc2.zip
You can ...
6
votes
3
answers
12k
views
The compression cannot be performed because the path to the file or directory 'Application Data' is too long
In Windows 7, whenever I tried to compress the USER directory into a .zip file I experienced this error and cannot continue:
The compression cannot be performed because the path to the file or
...
6
votes
1
answer
3k
views
zip/tar/? files with depth parameter
I would like to zip files from a directory but only to a given depth. In the example below I would like to include files until a depth of 3:
dir0/
dir1/
dir2 -> subdir1, subdir2
dir3 -&...
6
votes
1
answer
709
views
How to unzip a file with a hyphen at the beginning of the file name
I have a Zip file with a hyphen at the start of its name, let's say '- stuff.zip'
If I need to move or copy the file, this means that I need to use a double-hyphen so that the filename isn't ...
6
votes
3
answers
29k
views
Extract contents of multiple directories via 7zip (without creating subfolders)
I have a large directory of zip files, each containing a single file. I would like to extract all the zip files automatically, into one directory.
7-zip has a feature to extract multiple zips into ...
6
votes
3
answers
20k
views
ZIP file with metadata?
Is there any standard way to store metadata (e.g. timestamps) inside ZIP files, along with the files?
What program would I need to use in order to do this?
6
votes
1
answer
9k
views
Full path while zipping?
I have the following files:
~/Dir1/file1.txt
~/Dir2/file2.txt
Then I use the following command:
cd ~
zip out.zip /Dir1/file1.txt /Dir2/file2.txt
In the out.zip I can see two directories (dir1 and ...
6
votes
6
answers
33k
views
Proper encoding for file names in zip archives created in Windows and unpacked in linux
I have problems with different charsets in Windows and Linux (Centos).
I have files with special characters in their filenames from many different languages. The zip archive is generated under Win7 ...
6
votes
1
answer
11k
views
Show thumbnails of zipped images
I'm using Windows 10. I have a collection of zip files with JPG images. When I click on the zip file to view the contents, I would like to see a thumbnail of these images (even when I am in "Extra ...
6
votes
2
answers
51k
views
Compress large CSV FIle? (500MB)
I have a CSV-File which is 500MB of size. I am searching for a way to compress is to it smallest possible size. I actually received the file back then in a ZIP-Folder which was only about 50MB of ...
6
votes
2
answers
23k
views
Remove known password from zip archive without extracting
is it possible to remove a known password from a ZIP archive without extracting the actual archive?
I have some heavily compressed archives and want to avoid having to extract and rezip each of those ...
6
votes
3
answers
4k
views
archiving files without timestamp
I need to archive some files deterministically,
so that I get the same archive file if the content of the files is the same.
I need this for testing for equality of the archive files later.
however, ...
6
votes
2
answers
8k
views
Unzip Multipart Zip from Command Line
Thanks in advance for any help. I am trying to unzip a multipart zip file from the command line in OSX 10.8.5.
I created the zip using zip -s 800m foo.zip foo.mov
The file foo.mov is 2.7GB. So I ...
5
votes
4
answers
2k
views
Why are there binary differences among compressed files generated exactly the same way from the exact same starting file?
I use the "diff" command to compare two compressed files generated using zip on the exact same starting file and they are reported as being different. However, when I uncompress them and use the "diff"...
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?
5
votes
6
answers
6k
views
What other archive formats save Date Created and Date Accessed?
Compressing Files
When zipping files with Windows' built-in zip utility, it will not save the Date Created in the archive:
Also, I just found a bug where Windows will not save the Date Modified of ...
5
votes
2
answers
55k
views
Windows zip error: Windows cannot complete the extraction. The destination file could not be created
I have a strange error in Windows 7 when I want to execute/open a file inside ZIP archive.
I have two files:
File1.dwg
File2.dwg
The archive is not corrupted ( I checked with 7zip utility )
When I ...
5
votes
4
answers
19k
views
Why should I prefer 7zip over WinZip in Windows environment? [closed]
I know Winzip is not free and 7-zip is free . Other than this is there any reason why I should use 7ZIP over Winzip for compression ? I am using Windows 7 .
5
votes
3
answers
17k
views
zip command on linux how to force to zip only files and not whole directories structure?
I want just stupid, simple thing. ZIP all the content of given directory.
What I get as result of:
zip -r /home/andi/MEDIA_DUMPS/xyz_media.zip /home/andi/xyz/mega_backend/mega_www/media
Is ...
5
votes
3
answers
3k
views
Can a Zip File Become Damaged from Repeated Unzipping?
I use a mac and have a zip file that contains a base set of files that I use over and over. Every time I need the set of files for a new project, I simply unzip the zip file and they are ready for use....
5
votes
2
answers
78k
views
'zip' is not recognized as an internal or external command, operable program or batch file
I am trying the zip functionality on the windows host through command prompt.
When I run the command:
zip -r folder.zip folder
It returns the error message:
'zip' is not recognized as an internal or ...
5
votes
3
answers
76k
views
Can you get virus by clicking .zip file? [duplicate]
I tried to uncompress a zip file but I get error
“The compressed (zip) folder is invalid or corrupted”.
Is it possible to get virus just by trying to uncompress the zip? Can zip extension be ...
5
votes
2
answers
6k
views
Force all files in a NTFS compressed folder to automatically compress [Windows]
Is it possible to keep all the files within a NTFS-compressed folder compressed?
For example, if I have a compressed a folder using NTFS compression, it will compress all the files inside the folder ...
5
votes
3
answers
2k
views
osx: selectively zip large number of files: -@ option OK?
I need to make a zip file archiving ~100k files from a directory containing ~500k files. I get "argument list too long" errors when I try the obvious commands:
zip archive.zip *pattern*.txt ...
5
votes
5
answers
30k
views
Extract Zip or Rar files using the terminal on MAC OS X
I have just started to work on a Mac terminal for a school work.
My question is: which command do I have to write to extract files of a .zip or .rar file by using the terminal only? Is it the same ...