Questions tagged [zip]

Questions about manipulating .zip files or zip archiving utilities.

  1. A .zip file format,

  2. A tool to create a compressed archive (a "zip file") from one or more files using an archiver. Its use is spreading from MS-DOS now that portable implementations of the algorithm have been written.

284 questions
15
votes
3 answers

How to create a zip with multiple files without sub-folders?

Initial situation: . ├── d0 ├── f0 ├── f1 │ └── d1 └── f2 └── f3 ├── d2 ├── d3 └── d4 What I need to do: I would like to create a zip containing d0, d1 and d4 which must have the fallowing structure: . ├── d0 ├── d1 └── d4 What I have already tried:…
eDeviser
  • 2,189
15
votes
6 answers

What is the difference between different "compression" systems?

I've always used TAR and ZIP for compression, but recently I have heard about the *.Z compression algorithm. This brought up a question for me: With all of these compression systems, which one is best for general use and compression? Running a few…
Kaz Wolfe
  • 34,800
15
votes
3 answers

How to prevent Nautilus from automatically extracting ZIP files on open

Upgrading from 22.04 to 23.10 I noticed that now in nautilus when I double click on a zip file it will automatically extract it in the current folder. This is really bad when I can have a multiple-GB zip file with a lot of content and I only need a…
Mikk
  • 257
13
votes
5 answers

Can't extract a large zip file

System says my zip file is okay, but I can't extract it through unzip . I think maybe because it's such a large file (34 GB) that unzip might not support it. Is there a way to get this to work?
hamidi
  • 293
13
votes
3 answers

How to rename/extract files with long names in zip archive

I have a zip which contains files with very long names. If I try to extract on the command line, I get the error "File name too long". If I use the graphical archive manager it will not extract the files and it will not let me rename them. The same…
Terence Eden
  • 1,846
11
votes
3 answers

do not compress just zip files in command line

I have a bunch of photos, around 2 GB size to be precise. I need to download these images but I have to zip it first. Using zip command to compress the image files takes so much time to complete. I want to only zip those images in command line…
11
votes
2 answers

Extracting zip file fails giving error need PK compat. v5.1

I have a password protected zip file which was created in Windows. When I am trying to extract the same file under Ubuntu I get the error need PK compat. v5.1 (can do v4.6) . Any idea how to proceed?
topless
  • 7,505
11
votes
3 answers

zip in ubuntu 24.04 getting buffer overflow if right single quote mark present

Using the zip command, I am sometimes getting the following error: *** buffer overflow detected ***: terminated Some file names in the material being backed up contain sight single quotation marks, (ascii code E2 80 99). This is only a problem when…
quill
  • 1,402
11
votes
3 answers

Can't unzip 6 GB file: bad zipfile offset

I need to unzip a file of about 6 GB. However, I can't do it neither right-clicking (it gives an error saying "empty archive") or in the terminal, showing the following for the latter: $ ls fhs-3.0.pdf IDrive Tese.zip 'Transport Studies of…
11
votes
1 answer

How to crack the password of a zip which is protected with a password?

I have installed fcrackzip . The help page of fcrackzip says $ fcrackzip --h fcrackzip version 1.0, a fast/free zip password cracker written by Marc Lehmann <pcg@goof.com> You can find more info on*emphasized text* http://www.goof.com/pcg/marc/…
Jaswanth
  • 127
  • 1
  • 1
  • 4
10
votes
1 answer

Error while installing Visual Studio Code on Ubuntu 14.04

I've been trying to install MS Visual Studio Code after it was announced today, on my Ubuntu 14.04 computer. I've read the official docs and setup from Microsoft and I've read an answer to a question on this forum that asks for the installation…
10
votes
1 answer

Shell commands or script to unzip, add text file and rezip

I have created 200 zip files for work, but I realized I forgot to add the .txt to each of them. Instead of spending hours redoing this work I'd appreciate any help. Is there a way anyone knows using bash that will unzip, add the .txt file and rezip…
9
votes
2 answers

How do I partially suppress the command-line output of zip?

The Background: I have a python script that generates a bunch of images (png format, minimum of several hundred), runs ffmpeg to turn them into a short video, and then puts all of the images into a zip archive so I can go back if I find any strange…
9
votes
2 answers

Is it possible to copy a file into a zip archive?

I want to copy a file into a ZIP or JAR archive. Is that possible? If so how?
moata_u
  • 5,633
9
votes
1 answer

Is it possible to zip changed files into a separate archive with only the changed files

If I zip a folder, make changes to the normal unzipped files and then zip that folder again, is it possible to have only those changed files in a new separate archive? So first zip command would be: zip -r folder.zip * Second one something like: zip…
CodeChap
  • 193
1 2
3
…
18 19