Unzip is the process of archiving or decompressing a zip file.
Questions tagged [unzip]
54 questions
76
votes
4 answers
Equivalent to tar's "--strip-components=1" in unzip?
I have a script that extracts a tar.gz-file to a specified subdirectory mysubfolder:
mkdir mysubfolder; tar --extract --file=sourcefile.tar.gz --strip-components=1 --directory=mysubfolder;
Is there any equivalent way of doing this with a zip-file?
Fredrik
- 885
- 1
- 6
- 6
38
votes
1 answer
Why is unzipped directory much smaller (4.0 K) than zipped (73.0 G)?
I unzipped a zipped file using zip -l but what get is a dir much smaller than what it was before unzipping. Unzipped dir has all the files mostly videos. Why is the unzipped directory exactly 4.0k? Am I missing something?
Bash output of…
bluedroid
- 457
- 1
- 4
- 7
22
votes
8 answers
How to unzip files via an FTP connection?
I have connected to my remote server via FTP and I got a directory listing. I have few zip files in the list.
Is it possible to unzip the file (Ex: test.zip)?. If yes, what is the command?
Hearaman
- 323
- 1
- 2
- 6
9
votes
1 answer
How to decompress .lz4?
How to decompress .lz4 file under Windows? Is am not sure if it is supported in Windows. I tried to open the file using 7-zip but it could not open the file. How might I open and decompress this file?
user859920
5
votes
1 answer
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 interpreted as an option :
cp -- '- stuff.zip' '-…
user123065
- 63
- 4
5
votes
3 answers
How do I decompress .bgz files?
Is there any software that will decompress a file named nnnnn.tsv.bgz on a PC running Windows 10?
The usual R commands will not do it.
Maringo7
- 51
- 1
- 5
3
votes
0 answers
Is it possible to unzip in parallel with AES-256 encryption?
I compressed and encrypted (AES256) a folder with millions of JSONs using (in Ubuntu):
7za a -tzip -p -mem=AES256 json.zip json/
The compression seems to have gone fast, 4 hours or so. Now, I am decompressing/unencrypting the json.zip:
7za x…
toto_tico
- 571
- 4
- 9
3
votes
2 answers
Extract selected files from large zip file with limited available space
I need to download a large zip file (200 GB), unzip it (not sure how large it will become, but assume < 1 TB), and extract a few files from it (likely < 1 GB). My hard drive can't handle the amount of data, and I don't have an external drive with…
Sulad
- 45
- 1
- 3
3
votes
2 answers
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, and it unzipped the file, but what came out, all…
Vee Hua Zhi
- 143
- 1
- 1
- 8
3
votes
1 answer
Unable to understand error with unzip
I have some *.zip files. I was trying to unzip these files through unzip command in Unix. But it is giving some trouble which I can not understand.
Here is what I am trying to do
unzip file.zip
It is giving the following error
bad CRC 64162f32 …
Bionerd
- 51
- 4
2
votes
0 answers
How to decompress an encrypted zip file with ANSI encoded password?
I need to decompress zip files generated in Windows with Japanese language. I'm using unzip.
If I use unzip files.zip I will get bad file names. So, according to this question, I used unzip with -O cp932 to decompress them. In this way, I can get…
RabidBear
- 21
- 2
2
votes
1 answer
Why do some (but not all) zip-Files greater than ~3.7GB fail to extract
I am dealing with a lot of zip-files (DCP Films for a Film-Festival) between 4GB and 40GB that are sent to me by various individuals that use various programs to compress the folder that they are sending. There are usually 5-10 files per folder…
farbenrausch
- 21
- 1
- 4
2
votes
2 answers
How to know if a zip file has a root folder?
I regularly got suckered by zip file (libraries, programs, ...).
Sometime, I am cautious and I do:
$ mkdir content && cd content
$ unzip ../library.zip
Archive: library.zip
creating: library/
inflating: library/foo.c
...
$ # Grumble...
$ mv…
nowox
- 2,387
- 7
- 36
- 48
2
votes
2 answers
How to explore nested zip without extract?
In bash, I use unzip -l in order to show the content of a zip without extract its content.
My question: what command should I use if I have nested zip files and I want to explore also the content of nested zip inside?
Example:
file1.zip
|
|
…
Alessandro C
- 141
- 6
2
votes
1 answer
Methods to open huge .sql.gz file?
I have huge 12 GB .sql.gz file that I need to unzip on my Windows 10 computer. So far, I have tried using WinZip, 7-Zip, and the gunzip command in Cygwin. I received the error messages shown below for each of those attempts.
I know that the error…
Bob Loblaw
- 21
- 1
- 4