2
votes
0answers
36 views

Zip is corrupted, unpacks on Mac but not on Ubuntu

I have a zip file that is indeed corrupted. It contains one file that is fine, and a second that is 0bytes and corrupted. But when I unpack it on my Mac (double click in finder), it does unpack and ...
0
votes
1answer
33 views

OSx Terminal send zipped file to directory [closed]

I would like to zip the contents of a flash drive using this terminal command: zip -r archive_name.zip folder_to_compress The problem is, the flash drive is almost full, so I would like to make a ...
3
votes
2answers
6k views

Compressing folders with password via command line

I would like to know whether it is possible to do the following via CLI. I have a Folder F which contains several sub folders and some files. I want to compress folder F into .zip file with the ...
3
votes
3answers
7k views

Download ZIP file with curl command

How can I download ZIP file with curl command? I tried curl -sO, but error occurred. I want to download zip file from address: http://github.com/ziyaddin/xampp/archive/master.zip but can't. What must ...
1
vote
1answer
4k views

How do I make the directories in a zip file relative to the target directory instead of my working directory

I'm calling the zip command from a script where I cannot change directory. I need to make a zip file of the stuff in data/kit123/ from the directory which data resides in, but I want the contents of ...
2
votes
1answer
424 views

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: ...
2
votes
1answer
7k views

How to unzip files into the current directory?

I am trying to write a bash script that will automatically unzip mp3 downloads and move them into my ~/music folder. My problem is that when I use the unzip command, it creates it's own folder ...
53
votes
5answers
129k views

How can I create a zip archive of a whole directory via terminal without hidden files?

I have a project with lots of hidden folders / files in it. I want to create a zip-archive of it, but in the archive shouldn't be any hidden folders / files. If files in a hidden folder are not ...
2
votes
2answers
660 views

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 ...
8
votes
2answers
3k views

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?