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.

273 questions
322
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
  • 5,017
77
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
  • 881
67
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,065
16
votes
3 answers

Is there a way "extract and delete zip file" in a single command?

Is there a way (preferrable via GUI, but may be via command line) to extract a zip file and delete the zip after extracted, all in a single command? (I remember I saw someone doing something like this in the command line one day)
The Student
  • 11,926
7
votes
3 answers

what does the -@ mean when zipping a file in unix?

I found this command online, but not sure what the -@ means. find . -type f -mtime -29 -mtime +21 | zip -@ 061110_061201.zip
clayton33
  • 173
  • 1
  • 5
7
votes
1 answer

How to zip contents recursively under the directory foo/*.*?

zip -r /tmp/foo/bar.zip /tmp/foo/* > /dev/null 2>&1 and the achieve is in this structure /tmp /foo file1 file2 dir1/ file3 dir/2 file4 Why is /tmp part of the structure?
CppLearner
  • 1,267
3
votes
1 answer

How to recursively zip subfolders?

Been banging my head against the wall few hours now.... trying to recursively zip subfolders, but only the files in them. I've been trying to modify this script: for i in */*/; do zip -j -r "${i%/}.zip" "$i" ; done This is almost perfect, but…
tbone99
  • 31
3
votes
1 answer

Have `zip` utility only echo if a file was added or actually changed

I'm using zip to create an incremental archive. I would like it to only echo the file if there was a change between source and the archive, or if it's an added file. This would mean if I ran it twice in a row it would echo no files. (easy detection…
SimplGy
  • 133
  • 4
3
votes
2 answers

Why is this zip file unable to open?

I'm trying to unzip a zip file which contains a video... right away it says: 7-Zip [64] 9.20 Copyright (c) 1999-2010 Igor Pavlov 2010-11-18 p7zip Version 9.20 (locale=en_US.UTF-8,Utf16=on,HugeFiles=on,2 CPUs) Error:…
2
votes
4 answers

Does Ubuntu come with a zip file extracter?

I have not seen a zip extractor for Ubuntu on the version I installed. I like to root phones a lot of the time I have to zip and unzip files does Ubuntu come with a zip exacter for free?
2
votes
1 answer

What will happen after `zip *` executes?

By mistake, I did zip * in the shell. After execution, I failed to find the zip file. Where could I find the file and delete it?
2
votes
0 answers

Saving to a different folder in ZIP

zip compress.zip /from/this/path/settings.json I have the command above, but would like to store in /path/settings.json instead of /from/this/path/settings.json in the zip file. How do I go about it?
bilogic
  • 233
  • 1
  • 3
  • 9
2
votes
1 answer

Ubuntu utility to unzip .azip?

I just came across a file ending in .azip that I need to unzip. Upon some Googling I found this: https://azip.sourceforge.io/ https://sourceforge.net/projects/azip/ https://sourceforge.net/projects/azip/files/ It seems this is a Windows only…
cdahms
  • 1,773
2
votes
1 answer

Zip archive name using on the first zipfile's name

I want to create the backup of the Wordpress website in a directory example.com. The output file should be in the following format: YmDHM_example.com.zip Using the current date and time, it would be: 202003211045_example.com.zip. So far I got to…
Amade
  • 175
  • 2
  • 7
2
votes
1 answer

Split zip into smaller zip files

I need weekly to upload bunch of pdf file to grading platform, in the form of zip, but the website has limit of 250Mb per zip file, and it takes me too much time to split the zip I have into smaller zip files. What is the simplest way to split a zip…
1
2 3