Questions tagged [zip]

For questions about ZIP files and associated tools. ZIP is a file format used for data compression and archiving.

Filter by
Sorted by
Tagged with
0
votes
1answer
22 views

Can I add files to the folder which is being zipped?

Let's say I have a python script which generates some file file_i.yo in folder folder ever second. After a while I decided that I have to zip the current state of folder and send it somewhere. Thus I ...
0
votes
2answers
32 views

Create/decompress Zip file with LZMA compression?

According to PKWARE's Zip Appnote, it is possible to compress individual files in Zip files using LZMA (see section 5.8 LZMA - Method 14). Support for LZMA seems to have been added around 2013. Is ...
0
votes
0answers
13 views

Zip all iso files in current directory and move zip file to another directory

I am trying to zip all .iso files into a single zip file. Then move the zip file to another directory. Some of the iso files have very long names. How can I zip ALL iso files, without having to type ...
2
votes
1answer
24 views

zip outputs in the wrong place when used in a loop

I have many directories and I want to zip them all. $ mkdir -p one two three $ touch one/one.txt two/two.txt three/three.txt $ ls -F one/ three/ two/ I use zip and it works as intended: $ zip -r ...
1
vote
1answer
32 views

Hour glass/Progress while extracting large file from remote host in shell

I have a shell script, which is using unzip to get a very huge file from a remote directory to local directory within the shell. This operations taking pretty long time, roughly from 20-30 min. #!/bin/...
0
votes
0answers
15 views

unzip a patch onto a war file

I have this exploded war file directory in Tomcat /app/tomcat/webapps/xerox And I got a zip file containing a patch with directory structure from the war with few fixed classes So in the patch zip ...
0
votes
1answer
29 views

zip mail attachment getting corrupt by sendmail

I'm trying send an email through sendmail with zip file attachment using below function. It's working fine with csv file, but a zip format of same csv is getting corrupted. Thanks in advance. ...
1
vote
1answer
38 views

Unzip refuses to accept input through xargs

I am currently struggling with the following problem: Using a bash shell in macOS I want to search my Downloads directory for a zip file with a fixed and variable part in the name, the fixed part ...
0
votes
3answers
42 views

Unzip and store output name on a variable

I have a zip file with always the same name : toto.zip Inside there is only 1 file with the name who can change based on a version: totoInstaller-20210321_titi.pkg I would like to extract the name of ...
1
vote
1answer
78 views

How to force unzip listing to use unicode UTF-8

ZIP zip -r --symlinks ../a.zip a a.txt adding: a/šáčžřŠÁČÝŘŽÚ§/ (stored 0%) Filename is stored properly in unicode. LIST unzip -l ../a.zip Length Date Time Name --------- ...
2
votes
2answers
120 views

How to zip a large number of sub-directories, and have each zip file contain N of the sub-directories [closed]

I've read this. But I am trying to achieve something slightly different. I have a directory with many sub-directories. I want to create zip files with those sub-directories, but instead of creating a ...
1
vote
2answers
59 views

Literally printing with zcat

I'm a beginner in Linux world. Today I encountered something really weird. I used zcat command on a .zip file (this one, it's a manual for a motherboard: https://download.msi.com/archive/mnu_exe/...
4
votes
1answer
1k views

Unzip thinks my zip file is a zip bomb

I've been struggling with this for a couple days so I'm hoping someone on SE can help me. I've downloaded a large file from Dropbox using wget (following command) wget -O folder.zip https://www....
0
votes
0answers
34 views

How to find multiple zip files and unzip?

I have multiple zip files inside a folder and another zip file exists within each of these zip files. I would like to unzip the second zip files and create their own directories. Here is the structure ...
0
votes
1answer
26 views

unzip files from dropbox on linux server

I try to unzip a .zip file on my linux server that was downloaded from dropdox, but it does not work. Any idea what causes the problem? unzip -Z myfile.zip Archive: myfile.zip [myfile.zip] End-of-...
0
votes
1answer
213 views

What is set-group-ID on execution - ignored and why am I unable to unzip a file because of it?

I'm trying to unzip a file using gunzip GCF_000746645.1_ASM74664v1_genomic.fna.gz but I get the following error: gzip: GCF_000746645.1_ASM74664v1_genomic.fna.gz is set-group-ID on execution - ignored ...
0
votes
0answers
176 views

Why can't I uncompress a huge file without going out of memory in Linux while Windows can?

I do have a 36GB .zip file to uncompress, which while being extracted will end up freezing the PC because of going oom (out of memory) with file-roller and the unzip command in a freshly installed ...
0
votes
1answer
26 views

List only files and not directories in archive

I have a zip achieve like below $ unzip -l 5124.zip Archive: 5124.zip Length Date Time Name --------- ---------- ----- ---- 0 01-13-2021 09:22 u/ 0 01-13-2021 09:...
0
votes
1answer
51 views

MacOS/Windows - How to extract specific .json file from multiple zips and renaming the .json file as folder it was extracted from

I am dealing with cuckoo sandbox exported data having report.json file under each Zip file eg > 123456.zip each zip has the file in zipfile/reports/report.json i have multiple zip files in a folder ...
0
votes
0answers
14 views

zip folder with spaces in bash script through arguments [duplicate]

I have a folder in linux called New Folder (specified in shell arguments) This contain two single files, called file1.txt and file2.txt I want to zip the New Folder in one file called test test.zip (...
0
votes
1answer
30 views

Zip files together sharing common prefix

I have a directory with scsv files like this: file1.scsv file1_key.scsv file1_flag.scsv file1_typelist.scsv files2.scsv filass3.scsv file4.scsv file4_key.scsv file4_flag.scsv file5.scsv i.e. you have ...
0
votes
1answer
87 views

find: ‘zip’: No such file or directory

I'm using WSL (Ubuntu) and trying to recursively zip the files in a bunch of subfolders. i.e. Main Folder . SubFolder 1's files get zipped into a .zip SubFolder 2's files get zipped into a .zip ...
0
votes
1answer
23 views

password protected .zip extracts to empty folder (without prompting for password)

I've create a zip archive using the following command: zip -e myfolder.zip myfolder/ Which prompts for a password and compresses the folder without errors. Now I'm trying to unzip the archive using ...
1
vote
1answer
95 views

Bash - Archive Name to File Name, Improper Matching (zip,cdg,mp3)

I have written a script that checks for two particular extensions in a zip archive. A couple checks are made that determine if the archive has only 2 files then it process them. If the archive has ...
1
vote
0answers
88 views

Split Zip won't unsplit / recombine

I have a 3.5 gb CSV file that I need to transfer in zipped, 10mb parts. However after going through the process of zipping and then splitting the zip, the recombining of the zip using zip -s-, zip -s ...
1
vote
1answer
179 views

How to get the total size of a zip bomb?

I was messing with Zip bombs today. I ran my python program to generate a 30TB zip bomb, and it threw the normal warning: Warning: Using nested mode. The output may not be accurate. This got me ...
0
votes
1answer
55 views

Add file in a sub directory of a zip

I have a zip base.zip and inside the file there is 2 subdirectory. base.zip ├── subA │ └── fileA1.txt │ ├── subB │ └── fileB2.jpg │ └── k.jpg I want to add a file in the subA without extract ...
1
vote
1answer
23 views

How to create a ZIP file that prints a message upon extraction?

Recently, I have encountered a zip file (containing a single file) that printed a custom message to standard out when I ran unzip archive.zip without further arguments. I was not aware that this is ...
1
vote
1answer
59 views

Extracting jpg/jpeg files from multiple .zip files

I have a folder with over 200 .zip files. In each of these files there is only one folder with several types of archives in it (sometimes, this folder is missing). Among them, I want to extract only ...
1
vote
1answer
45 views

Updating a large compressed file without creating temp file

I'm trying to figure out a way that I can update a compressed file (currently using zip, but am open to tar/gz/bz derivatives too) on a linux server without creating a temp file for the file to be ...
0
votes
0answers
49 views

ZIP file not opening (corrupted)

I have been tasked with fixing a corrupted zipfile - the clue I have been given is to change its file header. I looked at the hex bytes using gHex and changed 50 4B 05 06 to 50 4B 03 04 but it's still ...
0
votes
0answers
27 views

PHP Zip module doesn't load

I use PHP 7.4 and Nginx 1.16.1 and i want to enable php-zip in my server because a wordpress plugin required it: I installed zip module (php-pecl-zip-1.19.1-1.el7.remi.7.4.x86_64). If i type php --...
0
votes
1answer
49 views

Find, zip and remove in a single line with a condition

I'm trying to simplifly a script into a single line which can find recursively files created yesterday, zip, move and remove depending of a condition. I have this structure: ../main -> child1 (...
0
votes
1answer
50 views

Trouble with unzipping files - Argument list to long [duplicate]

I have to gunzip all the files in folder (say Folder A), which has multiple folder hierarchy with files in each of them. This Folder A is present in thousands of folders in a directory. I need to ...
0
votes
0answers
60 views

is it safety to compress LINUX ISO file and approach suggestion

We are working to upgrade our rhel servers ( rhel 7.1 ) to rhel 7.8 by rhel 7.8 ISO file Since we have 296 rhel servers version rhel 7.1 we plan to do the upgrade as the following We build Linux ...
-9
votes
2answers
191 views

How To Encrypt Zip Files using linux terminal? [closed]

Need A Help ! I need how to encrypt zip file using Kali Linux terminal ! I tried hard! But i cannot learn it using my own knowledge!
2
votes
4answers
91 views

How to zip files as a folder

I have file structure similiar to this: - root_folder_with_bad_name - file1 - file2 - file3 I need to get zip archive with this structure: - archive.zip - some_folder - file1 - file2 ...
0
votes
1answer
45 views

What archival method (tar, zip, 7z, etc) allows me to retain folder modification dates on macOS?

I currently have a directory in a hard drive, say TopFolder which contains 3 subfolders, Folder1, Folder2, and Folder3. When I am in the top level directory of the hard drive, and do: tar cf TopFolder....
0
votes
0answers
23 views

Unzip: find a string and get inside filename [duplicate]

I have a list of zip files containing themselves multiple files. Like this : | archive-1.zip | file1.xml | file2.xml | file3.xml --> contains myStringToFind | file4.xml | archive-2....
3
votes
3answers
3k views

How to use multi-threading for creating and extracting tar.xz

I use tar -cJvf resultfile.tar.xz files_to_compress to create tar.xz and tar -xzvf resultfile.tar.xz to extract the archive in current directory. How to use multi threading in both cases? I don't ...
0
votes
2answers
350 views

How to download a zipfile from a Github repository

I'm trying to download a zipfile from a Github repository with this command: wget --no-check-certificate https://github.com/brendenlake/omniglot/blob/master/python/images_evaluation.zip -O /tmp/...
0
votes
1answer
1k views

Installing DHCPD on Arch Linux

I've installed Arch Linux today and am a bit of a noob at using it, so when I had done the installation my system would connect too my network fine, but after rebooting it stopped and gave me an error ...
0
votes
1answer
513 views

How to split larger zip file into smaller chunks using linux command [duplicate]

I have a zip file which is size of 1gb. I have to split this zip file into smaller chunks with the zip format of size 600mb. Tried below command: split -n 600m source.zip But output file is not in ...
0
votes
1answer
34 views

On MacOSX, *.zip can't match a-b.zip just ab.zip, how can I fix this?

I try to run sh fizmyzip.sh to remove some unnecessary files from all zip files under my current folder. fizmyzip.sh is: zip -d *.zip __MACOSX/\* zip -d *.zip "*/.DS_Store" However, it can'...
0
votes
1answer
93 views

How to provide a password as a variable to zip protected file?

I wish to unzip it using a variable to pass the password - instead of being prompted. I tried to use the parameter -P but it seems to be not working for me: [ora@hp_01 ZIP]$ zip -qT -P oracle test_zip....
0
votes
1answer
405 views

Backup Linux with Rsync & Send Backup Directory to Zip

Two Part Question PART ONE: I want to use the the following rsync command to back up my Ubuntu 18.04 file system starting at / during an Ubuntu Live Session (meaning my file sys), but I am not sure if ...
0
votes
1answer
44 views

How do I pass filenames with spaces in them to `zip`?

This feels like an incredibly simple task, but I can't get it to work. I want to put the first 13 files in a directory into a .zip archive. The obvious way to do this is zip first13.zip $(ls | ...
0
votes
1answer
175 views

After unzipping text files the format of contents are changed

I zipped a few text files and sent as attachments to my email. After extracting the text files, their format was changed. Before: line1 line2 line3 After: line1line2line3 Is there a way to keep the ...
0
votes
1answer
280 views

How to convert from rar or tgz to squashfs without having to extract to temporary folder?

I enjoy using squashfs for compression because of the simplicity of mounting them as loop devices to access the files inside. I have a lot of rar, tgz and zip files that I would like to convert to ...
1
vote
1answer
171 views

GNU parallel + gunzip (or 7z, or bsdtar, or unzip): extract every “archivename.zip” into (to-be-created) its “archivename” subfolder

As in title. I've got a lot of ZIP archives that I want to extract. All archives have their own unique name. All archives contain files only (inside archives there are NOT folder(s) at all: no ...

1
2 3 4 5
10