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

learn more… | top users | synonyms (1)

0
votes
0answers
17 views

Where is my 7za data being written to

I have a weird question about 7za on Centos 7. I am adding a file to a 7za archive using the following command (the total size of the directory is around 40GB) /usr/bin/7za a -ppassword -t7z -mmt=off ...
1
vote
1answer
14 views

unzip/untar files using Curl in ftp server

In the curl command we can delete,rename and move files from a FTP server using Curl like in the command below: curl -v -u username:pwd ftp://host/FileTodelete -Q "DELE FileTodelete" Can we untar ...
0
votes
3answers
33 views

Compress and remove original directory with limited storage

On my 3 TB external hard drive, I have a 2.7 TB directory containing relatively small files. I would like to compress this 2.7 TB directory and remove it to keep only the compressed version. The issue ...
-2
votes
0answers
14 views

Will zip -r command on remote server be cancelled if I exit terminal? [duplicate]

I have done a lot of Googling, and cannot find an answer. I have made a "zip -r home" request on my server via my terminal. The home directory is over 30GB. I need to leave the office at some point ...
3
votes
1answer
27 views

Using zip package for debian with password

I'm trying to make a backup .sh script to zip my files and to protect the zip archive with a password. For that, I'm using the zip package (apt-get install zip) and there's an encryption option ...
2
votes
1answer
28 views

Will zgrep recursively search zips embedded within zips?

I am using the zutils version of zgrep v0.9 (not the gzip wrapper script) and to recursively grep zip files starting from the current folder I simply use: zgrep -r "MY_STRING" . This works fine. ...
2
votes
3answers
56 views

Unzipping using tar: --exclude too greedy: how to exclude only root-level file?

I’m on a Mac, El Capitan. My zip file structure: README.md source/README.md I can’t seem to --exclude the root-level README.md without also excluding the one in the source directory too. I’ve ...
3
votes
1answer
42 views

“Mac-style” unzipping on linux

I'm using Linux Mint MATE edition, in case that's relevant. I don't know if this is Dropbox specific, but when i download a zip of a folder that was originally produced on a Mac (and that has lots of ...
0
votes
1answer
17 views

How to package web-inf/* and meta-inf/* to a war file via zip command?

I have a foo.war file (JSF web app). I unzipped it just fine. unzip foo.war Then meta-inf and web-inf folders are extracted. I made a change to a properties file inside of web-inf and I repackageed ...
0
votes
0answers
104 views

unzipping files with non-ASCII charactes in the file names

On the Linux distribution that I use, I have been frustrated with the unzip command since every time I have unzipped files where the file names contain non-ASCII characters, the command mangles the ...
1
vote
1answer
37 views

Extract specified types from a zip file

I have a big zip archive and I want to extract only .mp3 files that are located in sites/default/files/ to mymp3 directory. How can I achieve it?
2
votes
2answers
66 views

Linux + how to compress the old log files automatically

Under /var/log/httpd folder, files are created with huge capacity!!! What solution can I use in order to compress the old files automatically (can logrotate handle this)? If yes, how to configure ...
0
votes
1answer
22 views

ziping all files in a folder without all directories [duplicate]

I used this command to zip all files in a folder : zip -r fixedrom.zip /sdcard/dbtools/zipfix/fix/ ; It works fine but the zip should be like this : Meta-inf Recovery System Boot.IMG Etc... But ...
1
vote
2answers
111 views

How to zip multiple directories into individual zip files [duplicate]

I'm new to using the terminal and I found a post on here with the following code that would allow me to zip multiple directories into individual zip files but I only got it to work once. The code is ...
0
votes
2answers
22 views

Why doesn't the -x exclude option in zip seem to actually exclude the path?

Using Raspbian on a Raspberry Pi, I want to back up the /etc files, but not all of them. I'd like to exclude /etc/alternatives, so I used this command: sudo zip -r ...
0
votes
0answers
72 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
430 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
208 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
86 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
44 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
131 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
62 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
43 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
376 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
37 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
89 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
93 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
162 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
345 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
148 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
144 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
86 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
270 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
148 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
87 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
13 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.
2
votes
1answer
353 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
64 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
296 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
153 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
106 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
212 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
420 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
37 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
43 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
403 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
639 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