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.

251 questions
2001
votes
9 answers

How to unzip a zip file from the Terminal?

Just downloaded a .zip file from the internet. I want to use the terminal to unzip the file. What is the correct way to do this?
ubuntu-nerd
  • 20,269
  • 4
  • 15
  • 9
300
votes
8 answers

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 hidden, they should also not be included. I know that…
Martin Thoma
  • 17,379
  • 23
  • 68
  • 93
299
votes
8 answers

How do I zip up a folder but exclude the .git subfolder

I'm trying to create a zip file from a folder and I'd like to exclude the .git sub-folder from the resulting zip file. I have gone to the parent folder of the one I want to zip (called bitvolution) and I'm doing: zip -r bitvolution.zip bitvolution…
Tom
  • 4,789
  • 4
  • 24
  • 23
231
votes
2 answers

How to extract a zip file to a specific folder?

I have a zip file that I need to extract into another folder. When I set up extraction to said folder it says "permission denied". I've read here how to log into a terminal as root and superuser but can't find anything to help me. I need to extract…
Tj Cooke
  • 2,319
  • 2
  • 11
  • 3
223
votes
3 answers

How do I compress a directory?

I'm trying to compress a directory and ftp it to a windows ftp. I have tried every tar command I can find to compress a directory. It appears to be ok. Then I transfer it and view it's contents using Winrar. Winrar keeps telling me the file is…
dko
  • 2,423
  • 2
  • 18
  • 15
183
votes
8 answers

Create encrypted (password protected) zip file

How do I create an encrypted (password protected) zip file?
David Oneill
  • 11,378
  • 15
  • 54
  • 69
91
votes
2 answers

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 "password-only-extract".
UnderDog
  • 1,749
  • 3
  • 17
  • 16
69
votes
7 answers

Zip an archive without including parent directory

I want to zip many folders in a directory tree like so V- something.txt folder folder g.jpg h.jar When I try to zip it, it ends creating a zip archive with the v folder instead of the contents of it (the sub directories and files) How can I…
Dami
  • 841
  • 1
  • 6
  • 10
68
votes
7 answers

how to exclude directories and file zipping a directory?

I, need to zip a directory excluding some subdirectory and file; I used this: zip -r zipfile.zip . -x ".*" -x "app/bower_components" -x "node_modules" -x "*.zip" -x "node_modules" without any success; node_modules is a folder in the principal…
arpho
  • 791
  • 1
  • 6
  • 5
66
votes
8 answers

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 I type?
Ziyaddin Sadigov
  • 6,619
  • 6
  • 24
  • 33
66
votes
2 answers

How do I determine the uncompressed size of a zip file without decompressing it?

I have a large zip file and a limited amount of disk space. Can I determine how much space the expanded contents will take without decompressing the file?
user1552512
  • 1,055
  • 2
  • 9
  • 7
56
votes
5 answers

Extract several zip files, each in a new folder with the same name, via Ubuntu terminal

I have many zip files a.zip, b.zip, c.zip, ... and I want to extract each of them into new folders a, b, c, ... respectively, via terminal. Actually, what I want is a solution that I can use later with a find because I actually have many folders…
Michael
  • 695
  • 1
  • 6
  • 8
39
votes
1 answer

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 the zip to only be the contents of kit123, with…
Nathan
  • 763
  • 2
  • 6
  • 10
35
votes
1 answer

how to pass multiple files to zip for zipping

Say I have a list of files a.txt, b.txt, c.txt, is it possible to pass it to zip command as arguments and make it zip it in one file say a.zip?
william007
  • 537
  • 1
  • 6
  • 13
29
votes
5 answers

How to split .zip files and join them in Windows?

I need to split a .zip file in Ubuntu as .z01, .z02 etc... so that I would join them back in Windows. I don't have access to command prompt in Windows. How would I unzip files now?
kunaguvarun
  • 809
  • 4
  • 12
  • 19
1
2 3
16 17