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 ...
2
votes
1answer
68 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
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 ...
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 ...
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 ...
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, ...
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
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 ...
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 ...
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 ...
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
69 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
1answer
231 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 ...
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 ...
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
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?
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 ...
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 ...
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.
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 ...
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
190 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 ...
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 ...
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) ...
3
votes
1answer
308 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
260 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 ...
0
votes
1answer
392 views

Compress multiple files and keep their name?

I have hundreds of .csv files that I need to compress into one file each. It should look like this originalname.csv.gz
1
vote
1answer
594 views

Unzip the archive with more than one entry

I'm trying to decompress ~8GB .zip file piped from curl command. Everything I have tried is being interrupted at <1GB and returns a message: ... has more than one entry--rest ignored I've ...
0
votes
2answers
435 views

How to redirect unzip -v output to a log file in shell script [duplicate]

I have a script that loops through all zip files in a large directory and individually unzips them. I am using the -q option in order to keep the console clean and display other monitoring info. I ...
1
vote
2answers
246 views

Extract specific file from complex war archive structure

I'm new in Unix, am trying to extract specific file(by using one command) form this kind of folder structure: .../file1.ear/file2.war/folder1/folder2/fileToExtract.txt What I do ...
1
vote
2answers
26 views

Cursor points to bottom when a zip file is opened with vim

I am trying to open a .zip file via vim. By default the cursor points to the bottom of the file once it opens. How can I bring the cursor to the beginning of the file as soon as I open a zip file? ...
4
votes
1answer
1k views

ZIP files with size limit

Is there a command to create multiple ZIP files based on file size? So that in a folder of 600 files, totalling 1 GB, the command will create 4 zips roughly equal to 250mb. There's a similar command ...
1
vote
1answer
160 views

Unzip specific files from multiple zip files

I'm new to Unix and am trying to extract specific pattern filename from the multiple zip files. I'm using find to find the zip files, and then trying to extract files having the filename CTL in the ...
0
votes
0answers
77 views

Unrar 5.0 problem on boot - Pyload

I have problem with Unrar 5.0 when I load pyload. When pyload is loaded on boot then Unrar is not loaded (line 168): 157 24.04.2015 08:50:40 INFO Starting pyLoad 0.4.9 158 24.04.2015 08:50:40 INFO ...
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 ...
3
votes
0answers
189 views

sync two zip archives (with minimal I/O)?

zip itself can freshen an archive to reflect the current filesystem (e.g. -FS). It only updates zip entries with outdated timestamps. Is there a tool that updates a 2.zip file so that it becomes ...
1
vote
1answer
532 views

Is there a way to use sed or awk to filter data inside a zipped file? [duplicate]

Is there a way to use sed or awk to filter data inside a zipped file? When I run a sed or awk command and send to stdout the file created is 0 bytes.
0
votes
3answers
2k views

How do I copy the latest file from one directory to another?

I have 3 zip files in a directory. I want to copy the most recent version to a backup directory. My code works fine for .sh and other files, but not for .zip. Is there something else I have to do? ...
1
vote
1answer
162 views

Bash script to get the result from rsync transfer and zip it as a directory in the original directory

OK, I guess this is weird. I have a small stage.sh script very simply has a bunch of commands: if [ "$(whoami)" == 'David' ]; then rsync -a --delete-excluded --exclude-from=.rsyncrc $(pwd) ...
1
vote
1answer
186 views

Extracting Wordpress.zip file on Linux server

I'm new to Linux and I'm currently trying to do the following: unzip the contents of wordpress-4.1.1.zip to the directory in which it is contained which is /my-test-site/wordpress-4.1.1.zip I ...
0
votes
2answers
162 views

In a shell script, How to give a variable another value after one job is done?

I'm trying to make a script which will see if the directory exists and will zip all of its contents under it according to the name/path of the directory. The farthest I could go was - ...
3
votes
1answer
3k views

Error trying to unzip file: “need PK compat. v6.1 (can do v4.6)”

I received a zip file from a bank. I get the following error when I trying to unzip it. unzip filename.zip Archive: filename.zip skipping: SOME_STUFF.pdf need PK compat. v6.1 (can do v4.6) ...