Zip is a file format used for data compression and archiving.

learn more… | top users | synonyms (1)

0
votes
0answers
18 views

Extracting zip inside Midnight Commander, full window goes grey

When extracting a zip file inside Midnight Commander the full putty window goes grey. Extract at least two files from the archive. The extraction succeeds but screen goes nuts (of course it get back ...
10
votes
1answer
13k views

Unzip file contents, but without creating archive folder

I have a file myarchive.zip that contains many directories, files, etc. Let's say this myarchive.zip file lives in a directory called "b". Well, when I use the "unzip myarchive.zip" command, the ...
1
vote
1answer
92 views

Bash script to select files to zip/unzip

I'm trying to zip and unzip files with a bash script, but I'm new and I have problems. I will explain what the script currently does, and then what I wanted it to do. User selects “compress”: a file ...
0
votes
1answer
2k views

Adding unzipped files to a zipped folder

I'm trying to add unzipped files to an existing already zipped folder say new folder.zip. Is it possible to use zip -r new folder.zip after adding some unzipped files to them? Will this command ...
1
vote
2answers
114 views

How to redirect output of a program to a ZIP file? [closed]

I am running a script which is collecting a log of a server. I need to redirect this logs to a ZIP file. Right now I am collecting data into text file. How can I redirect it directly to ZIP?
0
votes
1answer
822 views

moving files to a folder and zip the folder

I have to zip a few files induvidually from folder A and move them to folder B on the same directory which takes lot of time. So I thought of moving all those files to be zipped to a new folder(c), ...
8
votes
7answers
9k views

Extracting nested zip files

I have numerous zip archives, each of which contains a number of zip archives. What is the best way to recursively extract all files contained within this zip archive and its child zip archives, that ...
6
votes
3answers
1k views

Find recursively all archive files of diverse archive formats and search them for file name patterns

At best I would like to have a call like this: $searchtool /path/to/search/ -contained-file-name "*vacation*jpg" ... so that this tool does a recursive scan of the given path takes all files with ...
2
votes
1answer
69 views

How can I correctly decompress a ZIP archive of files with Hebrew names?

(Question self-migrated from superuser.com) Someone sent me a ZIP file containing files with Hebrew names (and created on Windows, not sure with which tool). I use LXDE on Debian Stretch. The Gnome ...
1
vote
1answer
32 views

Command to verify CRC (CRC32) hashes recursively

With the commands md5sum, sha1sum, sha256sum I can take a text file having an hash and a path per line and verify the entire list of files in a single command, like sha1sum -c mydir.txt. (Said text ...
5
votes
1answer
1k views

When I use zip, how can I display the overall progress without flooding the command line?

A fixed-length progress bar, a file or byte count, or better yet a timer showing the estimated time remaining would be ideal. zip's standard behavior seems to be to print a line for every file ...
1
vote
1answer
194 views

Can I uncompress a zip file containing a disk image and then save that to an SD card all in one step?

I am under the following restrictions: I have a 1.0 GB .zip file on my computer which contains one file, a disk image of raspbian. When uncompressed, this file is 3.2 GB large and named ...
1
vote
1answer
37 views

Zip subdirectories based on find, -exec

Here's what I would like to achieve: I have some directories, and subdirectories in them (which may have sub-subdirectories). In each subdirectory I want a zip file with contents of that particular ...
1
vote
1answer
62 views

Zip a file without including the parent directory

I have a folder that contains multiple files folder artifact1.app artifact2.ext2 artifact3.ext3 ... My goal is to zip the file from outside this folder (so without using cd ...
10
votes
6answers
8k views

How do I recursively grep through compressed archives?

I'm trying to find out what modules use Test::Version in cpan. So I've used minicpan to mirror it. My problem is that I need to iterate through the archives that are downloaded, and grep the files ...
2
votes
2answers
53 views

Extract a List of .zip files into one new directory each, directory name to be taken from name of the zip file

I have a folder containing many .zip files. They are named like this: John-Rupert A. Doe_nnnnnnn_assignsubmission_file_*.zip where n is a digit, * is a string and John-Rupert A. Doe is a string ...
1
vote
0answers
22 views

Archive for root file system with quick random access

I need file archive format with the following features It is compressed (not plain tar or iso). It can backup (and restore) linux root file system keeping owners, symlinks, sparse files, devices, ...
3
votes
1answer
74 views

Listing the files from the nested zip file without extracing

I have nested zip files and i need to list the file names without extracting in the temp location. Using shell script. Please let me know if we have any work around Expample : Zip1 text1 ...
0
votes
1answer
344 views

why would you tar a zip file

I see here that a tar is used to merge several files into one. So why do I see so often one zip file in a tar? example : archive.zip.tar
4
votes
1answer
8k views

unzip to a specific folder

I want to unzip the contents of a zipfile called mine.zip into /yours/ but when I do it using the -d flag it keeps going into /yours/crap/ etc which is not I want Is there a way to do this?
1
vote
1answer
19 views

Zip several soundfile-formats without deflate

I have a folder that i want to zip but not deflate the soundfiles (since i'll create an expansion file for android). TO achieve that one can use the -n flag. that is zip -n .mp3 main_expansion ...
28
votes
5answers
67k views

How to unzip a multipart (spanned) ZIP on Linux?

I need to upload a 400mb file to my web server, but I'm limited to 200mb uploads. My host suggested I use a spanned archive, which I've never done on Linux. I created a test in its own folder, ...
1
vote
0answers
72 views

Ubuntu unzip error: sysmalloc assertion failed

I'm trying to unzip a multipart zip file (that I had originally zipped in Windows using WinRAR). The file consists of 4 parts: me.zip and me.z01, me.z02, me.z03 and me.z04. The command I'm using to ...
0
votes
1answer
233 views

bash: /usr/bin/find: Argument list too long

I have too many files in a folder. I just want my inodes to be get free as soon as possible,So I have tried with find ./EcoBackup/* -name '*.*' > FilesBackupName.txt bash: /usr/bin/find: Argument ...
2
votes
5answers
149 views

Extract a single file from a zip file only knowing the extension

My first part of the requirement: I would like to extract a single file from ex1234.zip. The structure and contents of ex1234.zip: ex1234 (directory) directory1 ex1234 (directory) ...
2
votes
2answers
34 views

Creating a zip archieve [duplicate]

I want to create a zip archive from all files which are in "my_folder". Here is how I do it: zip -9 -y -r -q name.zip /home/user/Stack_Exchange/my_folder/ The problem is that right now when I ...
0
votes
1answer
70 views

zipping files without changed its ownership

I understand now that i cant give away files Using chown as i am a normal user and not the one with root permissions . Now my problem is I have a whole bunch of files with write permissions on them ...
0
votes
0answers
21 views

Extract tar archive ignoring the Archive file name in single command [duplicate]

I would like to extract a tar file archive.tar.gz into a directory /Users/guest/data without the creation of the archive directory in the data directory tar -xvf archive.tar.gz -C /Users/guest/data ...
0
votes
1answer
111 views

Unix zip command junk-paths flag not working on same file names [closed]

I have the following file structure: cwd/ ---dir1 ---file_name1 ---some_file_name ---dir2 ---file_name1 ---some_other_file_name ---some_file I want to get ...
0
votes
1answer
71 views

If umask is same when why unzip <filename> on two different hosts getting permissions different

umask on two hosts is same ( 0027 ) Still when i unzip the same file ( MD5 match), the permissions of same unzipped file differ in directory and file permission in two hosts. How can it be possible ...
22
votes
4answers
2k views

How to know how much space an uncompressed zip will take

Given a (really long) list of zip files, how can you tell the size of them once uncompressed?
1
vote
2answers
2k views

Test integrity of ZIP file?

Near as I can tell the zip -T option only determines if files can be extracted -- it doesn't really test the archive for internal integrity. For example, I deliberately corrupted the local (not ...
0
votes
2answers
157 views

How to use unzip command to extract subfolder contents into current directory:

I have a zip file: foo.zip. The zip file extracts to: - foo/ - hello.txt - world.txt What command do I issue to extract the files hello.txt and world.txt to the current directory rather than ...
63
votes
3answers
234k views

Zip all files in directory?

Is there a way to zip all files in a given directory with the zip command? I've heard of using *.*, but I want it to work for extensionless files, too.
0
votes
1answer
96 views

CentOS - 7za - Extract file with password

I have a .7z file which I need to extract the contents of. The problem is, that it's password protected and currently, I have to SSH into the server and enter the password. I would like to this ...
6
votes
2answers
7k views

What's the difference between gunzip and unzip?

What is the difference between gunzip and unzip? Tried to search but couldn't find anything relevant with this.
0
votes
0answers
57 views

how to exclude specific subfolder when creating zip file via command line linux

I do want to exclude subfolder like uploads/2015/OtherSubfolderName through command line. I have tried with below command, its working fine. zip -r zipfile.zip public_html -x *uploads* but can we ...
0
votes
0answers
11 views

Zipping folders individually using original names [duplicate]

Using the zip command, how can I compress all of the folders within a given directory as individual .zip files using their original folder names? Thanks in advance. Any help is much appreciated.
0
votes
1answer
28 views

zip files in a directory based on a pattern before moving to archive location

For example in data directory I have files like CODE_A1_timestamp.txt, CODE_A2_timestamp.txt and DOCI_A1_Timestamp.txt. I only need to zip files with pattern CODE_A1* i.e. CODE_A1_timestamp.txt file ...
1
vote
2answers
191 views

Extract one file from multiple zip files

I have a folder tree which contains multiple .zip folders (approx 600) each containing four files. I wish to extract just one file from each folder and copy it out to a separate folder. To complicate ...
24
votes
2answers
24k views

Zip everything in current directory

I'd like to compress and package everything, including files and folders in current directory, into a single ZIP file on Ubuntu. What would be the most convenient command for this (and name of the ...
0
votes
1answer
118 views

Zip the contents of a directory without the directory itself [duplicate]

I want to create a ZIP archive of a directory without going into the directory itself, and not include that directory Zip the contents of a folder without including the folder itself - This post ...
0
votes
1answer
74 views

When I extract a zip file on my hosted server the permissions are different than my own server. How do I simulate the extraction on my hosted server?

I have an application, let's say Bootstraptor. When I extract it on my hosted server, it extracts fine and all the directories have permissions 755 and the files have 644. And the application works ...
3
votes
1answer
309 views

Round-tripping text through zip, unzip fails with 'extra bytes' error on OS X [duplicate]

I'm trying to zip streaming text, and unzip it later. A minimal example is: echo "Hey, could you zip this for me?" | zip hello.zip - ; unzip -p hello.zip This fails, with the following output: ...
1
vote
2answers
30 views

How to exclude a directory when zipping files

I'm trying to exclude a certain directory when building an archive using zip. Here's what I have tried: $ zip home.zip -y -r HOME -x '/AppData' -x '/AppData*' -x '/AppData/*' -x 'AppData' -x ...
2
votes
1answer
40 views

How to create a zip of directories -mtime -150

I want to zip the directories, sub directories, files in main and sub directories from today till 150 days ago. I only consider the date of the directories where I am running the command, no matter ...
-2
votes
2answers
261 views

HTML document as .zip file, can't unzip

I'm downloading a ZIP file from a website, the ZIP contains numerous JSON and XML files which I am then trying to unpack. The problem I'm having is that unzip doesn't want to unpack the file: unzip ...
7
votes
5answers
6k views

Extra-bytes error when unzipping a file

When I enter unzip ../founation-latest.zip, it outputs this: warning [../foundation-latest.zip]: 248 extra bytes at beginning or within zipfile (attempting to process anyway) The file is 138KB. ...
1
vote
2answers
726 views

How strong is the encryption of a zip file in Linux Mint

Zip encryption has had often a bad reputation of being weak, but some would argue that a zip file encrypted using certain algorithms (such as by using AES), together with strong password, is really ...
9
votes
3answers
2k views

Is there a way to convert a zip to a tar without extracting it to the filesystem?

Is there a way to convert a zip archive to a tar archive without extracting to a temporary directory first? (and without writing my own implementation of tar or unzip)