Skip to content

Tag: zip

How to zip multiple folders separately in linux

Below mentioned folders contain some data. I need to zip all the folders separately. With this Command, I can zip only one folder How can I zip all the folders separately at once? Answer First, make sure that you are in the directory where the above mentioned folders are. Then run: find . -type d -maxdepth 1 …

zipping all files specified in a text file and then deleting them

I’m trying to add each file, specified one per line, into a file named files.zip. The directory structure of each file specified should remain as is. After the file listed in files.txt is added to files.zip it should be deleted, but never the directories. The structure of the text file is one file per l…

Is there a way to delete zip archive comments in python?

I have multiple zip archives all with a similar comment. Is there a way to delete the comment from the archives with python and use it over multiple archives with similar comment? What I have tried with single archive This is not working. Comment is not getting deleted in the archive, plus I want this to work…

Zip command on Linux includes whole folder structure

I’m currently incorporating continuous integration on a project I’m working on at work using Bamboo. We are using ANT scripts to do the build automation, and as the final task we’re using the linux Zip command to create a release zip file. The problem is that the zip file contains the whole …

Zip Junk Paths Option Not Working

I have a bit of an odd one that I can’t seem to figure out. Here’s the setup. I am downloading a bunch of files given to a script via array. The files are not necessarily in the same folder, so I don’t think just using cd to change directory and then add the files I want is going to

Linux where does zip place the newly created zip file? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack …

Compressing ZIP files in a linux server with PHP

I am trying to create a .zip file of a folder in linux. First I go where the compressed folder is: The folder test has the folder testzip which should be zipped and sent somewhere else: This should create testzip.zip. Somehow this doesn’t work. Could anyone help? Answer Try with instead of — EDIT …