All Questions
24
questions
0
votes
1
answer
1k
views
How to add file inside folder of a zip
How do I add a file/folder in a zip file that isn't in the root folder? For example in
test.zip\parent test folder\folder1
and I want to add test1.txt inside the \folder1 of the zip file?
I am using ...
0
votes
0
answers
267
views
Create multiple compressed folders in Linux
I need using 7zip for create multiple compressed folders in Linux. Same case as here (But this guide is only for Windows): https://www.wikihow.com/Use-7Zip-to-Create-Multiple-Compressed-Folders-in-One-...
1
vote
1
answer
2k
views
How to join splitted files from Linux on Windows
So i splitted up a huge file from my Ubuntu Machine (via the split command) into 2GB Chunks so i can download them easier.
Now i have them laying on my Network Share and i can't seem to figure out, ...
2
votes
0
answers
60
views
How do you prevent lynx from unzipping files?
Lynx has this bizarre behaviour where it (randomly!) decides that a file is a zip file, and then automatically unzips it. This is extremely frustrating: it means it's no longer acting as a web browser ...
1
vote
2
answers
2k
views
Zip file corrupted after SSH file transfer
I'm trying to zip up some files on my Windows laptop, then transfer them to my Ubuntu server, and unzip them there, but I always get an error while unzipping the archive telling me that the archive is ...
1
vote
1
answer
858
views
Can't install zip on ubuntu
I'm trying to install the zip package on my ubuntu 16.04.2 LTS server, but when I run the command apt-get install zip I get the following output
The following packages have unmet dependencies:
linux-...
8
votes
1
answer
1k
views
While trying to see the content of a zipped file, I only get information about the zipping process
In Ubuntu, installed on Windows Subsystem for Linux, I want to see the content of a zip file, using gzip --list.
I expected to see a list of included files like this:
FileName ratio
File1 ...
0
votes
1
answer
239
views
ubuntu: How to zip a directory in ubuntu by excluding some subdirectories from command line
Added from SO as off topic, however there is no answer in here
I want to zip a directory by excluding some unwanted subdirectories. I have tried :
zip -r test.zip * -x 'test1/' 'test2/'
and
zip -r ...
1
vote
1
answer
509
views
How do I update a Web software package from a ZIP file from the command line?
I have a Web software package installed on my Linux server. I've downloaded an update in a ZIP file, and I want to overwrite only what's changed. (For example, all the core files should be replaced, ...
1
vote
0
answers
968
views
Zip only contents of directory using absolute path
A lot of solutions to zipping the contents of a folder, Excluding the folder, look like this:
zip -r contents.zip *
But I need to do this WITHOUT cd'ing into the directory, I want to use an absolute ...
1
vote
1
answer
351
views
Unziping multiple ziped and rename automatically files with same name if needed
I have a bunch of Ziped files in a folder, and i would like to unzip all, ut automatically rename folders or files with the same name, example:
In ZIP_folder_1.zip and ZIP_folder_2.zip i have one ...
0
votes
1
answer
3k
views
How to unzip multiple ziped files and rename automatically if needed
I have a bunch of Ziped files in a folder, and i would like to unzip all with:
unzip ZIP/*.zip
But automatically rename folders or files with the same name, example:
In ZIP_folder_1.zip and ...
16
votes
2
answers
26k
views
Check if zip file is damaged [duplicate]
How can I check whether a zip file is damaged?
I know that with zip -F input.zip --out output.zip I can fix the file.
But I could not find an option that only checks the file CRC.
I'm using Ubuntu 12....
0
votes
1
answer
2k
views
Merging 2 zip files
I have 2 zip files:
file1.zip
file2.zip
I want to compare the two zip files and then only extract the files missing in file2.zip (directory structure intact) so that I can merge them in.
...
2
votes
2
answers
7k
views
How do I unzip a file with PPMd compression: I have the error "PPMd method not supported"
Ubuntu/Windows 7 user here,
I have a zip file that I am trying to extract. In windows I get an error. In Ubuntu, the archive manager I get a "PPMd method is not supported"
I read about 'e', a ...
0
votes
1
answer
4k
views
Unzipping archives, preserving folder hierarchy
I've got a problem and am not sure what it is, but hope someone can help me think this through because this has me stumped.
Backstory:
I wrote a Java app (Android) that unzips some zip files ...
1
vote
1
answer
2k
views
How to zip folder and upload to Dropbox?
I would like to zip a folder and upload to my dropbox from Ubuntu shell.
I intend to use this as a backup solution, so it would also be nice to run everyday and replace the older file..
If dropbox ...
2
votes
1
answer
9k
views
How to update one file located in a zip subdirectory?
I have a zip archive that contains several folders and I need to update one specific file within such a folder.
How can I update the file with a command line? I have already tried
7z u my.zip ./...
1
vote
1
answer
219
views
versatile unzip utility
Is there a compression utility that will allow extracting a file while skipping the first (container) directory.
My purpose is to create an automated install script that will download a specific .zip,...
6
votes
2
answers
13k
views
Include empty directories in zip file with Linux
I'm trying to zip a directory a linux using the following command:
zip -r file.zip .
This works, but it isn't include the empty directories that I want to be included in the zip file. How can I get ...
9
votes
2
answers
45k
views
In Ubuntu, how to copy all contents of a folder to another folder?
I want to copy the contents of an unzipped folder, wordpress/, to another existing folder.
I tried
cp -R wordpress/*.* /my/folder
but the sub-folders in wordpress/ didn't get copied over.
Why not?
1
vote
1
answer
240
views
Winzip Legacy Format in Ubuntu?
I have a script that uses the ZIP command in linux (Ubuntu), and changes the name to make it executable for a certain program.
Now I realized the reason this program was not unzipping and installing ...
2
votes
3
answers
587
views
Want to zip up folder with 20K images to upload, how to breakup zips and then unzip?
I have a folder with about 1 gig worth of images I have to upload to a server.
I want to zip/tar them up, preferably into multiple files that I can upload to my ubuntu server.
Then I want to unzip/...
1
vote
1
answer
980
views
File was deleted and then reappeared when folder was zipped
I am using Backtrack 4 Final, which is a Linux distro that is Ubuntu based. I had a directory that contained around 5 files. I deleted one of the files, which sent it to the trash. I then zipped the ...