Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [zip]

Questions about manipulating .zip files or zip archiving utilities.

8
votes
1answer
451 views

Shell commands or script to unzip, add text file and rezip

I have created 200 zip files for work, but I realized I forgot to add the .txt to each of them. Instead of spending hours redoing this work I'd appreciate any help. Is there a way anyone knows using ...
-1
votes
1answer
61 views

How can I get `zip` to use relative paths in a script?

Normally I use zip command with: zip -r my_arch.zip my_folder Now I am using zip in an bash script in this way: #!/bin/bash OUT=$1 NAME=$2 zip -r -q $OUT/$NAME $OUT/$NAME I call the script ...
1
vote
1answer
28 views

ubuntu 14.04: How to compress a directory which have symlinks?

I have a php project of size 3.5GB in which there are symlinks of several files. I want to zip it and take backup to windows 10 PC from my ubuntu 14.04 laptop. Whenever, I make a zip file of it and ...
3
votes
1answer
275 views

zip files in all directories and subfolders without the folder itself

I need to recursively zip the individual files itself in the directory path and its sub folders without zipping the folders or directory. I also need to exclude certain file types (more then one). ...
1
vote
2answers
37 views

Finding all .ODTs, zipping them and bringing them to the desktop

I want to find all the .ODTs in my $HOME directory, zip them and bring the zip file to the desktop. By doing find -type f -iname "*.odt", I get: ./Programmierung/Hash bang.odt ./Schreibtisch/Alles/...
0
votes
2answers
132 views

Extract files inside folder in ZIP archive to current folder

can I extract files from a specific folder inside a zip archive to a current folder? I tried to use unzip archive.zip folder/* But I got folder "folder" in my current directory. How can I ...
1
vote
1answer
29 views

Using zip with -T and --password at the same time.

I'm invoking this command from an application I write. zip -rm9T --password pass123 /home/cats.zip /home/cats-data/ I'm setting a password to the archive and I'm specifying that the archive's ...
0
votes
1answer
35 views

Need help with: “file type Gzip archive is not supported”

I’ve downloaded the Ltc core wallet on Ubuntu 16.04, 32bit. When I try opening the folder, a message tells me ‘file type Gzip archive is not supported’. So I downloaded Xarchiver and tried again, with ...
10
votes
1answer
2k views

Create zip file with password protection in Ubuntu 18.04

When creating a zip file with password protection in Ubuntu 16.04, using the Nautilus context menu, I was asked for zip options like password protection. Under Ubuntu 18.04 there seems to be no way ...
2
votes
0answers
23 views

zip created by archive manager is smaller than one created by zip on command line

I am creating a zip archive of one file, in 3 different ways: zip -1 (least compression) --> 33.8kB zip -9 (most compression) --> 32.3kB archive manager (zip option) --> 26.1kB Why is there such a ...
0
votes
1answer
23 views

Is there a way to hide files after compressed?

I've been trying to encrypt some data with 7za (don't even know if it's secure enough) but, even after encryption and compressing, it would be possible to check which files my compressed file contains....
0
votes
0answers
42 views

XFCE - How can I restore the option to zip files using the right click menu?

When I right-click on a file (or group of files), I no longer have the option to zip a file(s). How could I restore it?
1
vote
1answer
271 views

“unable to get password” when trying to unzip password-protected archive

In Total Commander in Windows I created a password-protected zip-archive. I can't unzip files from it in Ubuntu 17.10 (neither in Files nor in Krusader). Then I extracted all files in Windows, ...
0
votes
0answers
30 views

Which encryptor is more reliable for security, and safe for files inside

i need to know which encryptor is better, before i used zip -encrypt But it so much time make corrupt archives, if size in him more then 1GB. I know zip, openssl And i think do not know ...
2
votes
1answer
115 views

Is it possible to keep setgid bit when unzipping files as non-root user?

I have a folder with the following permissions: drwxrws--x+ 13 myuser www-data 4096 Mar 20 09:57 project-folder In this folder I have an archive archive.zip with the following permissions: -...
0
votes
2answers
75 views

Click to “Extract here” possible?

For my work I constantly need to unzip zip-archives. I know I can right-click and select "Extract here", but since I do this a lot, this is becoming annoying. Is there a way to set the default ...
0
votes
0answers
883 views

How to run WinRAR on Ubuntu (the original Windows WinRAR, not UnRAR)?

How to run WinRAR on Ubuntu (the original Windows WinRAR, not UnRAR)? Can you do it with Wine somehow? I think I tried that with 14.04 but failed, maybe it's possible with 16.04 or should be possible ...
1
vote
1answer
5k views

How to install Java 7 or jkd 7 on Ubuntu 16.04? [duplicate]

I'm really in trouble. As the Java 7 support and built are not available anymore on the web. I have gone through many of resources and question answering websites online but unable to resolve this ...
1
vote
2answers
427 views

How can I recursively zip files in their own folder?

I have the following directory structure: /Data - file 1 - file 2 /Folder1 - file 3 - file 4 /Folder2 - file 5 - file 6 /Folder3 - file 7 - file 8 In Linux I ...
1
vote
0answers
1k views

How to crack the password of a zip which is protected with a password?

In ubuntu, with the fcrackzip tool fcrackzip, I set image instead of description. How to crack the zipfile which is protected with password?
1
vote
1answer
2k views

how to pass multiple files to zip for zipping [duplicate]

Say I have a list of files a.txt, b.txt, c.txt, is it possible to pass it to zip command as arguments and make it zip it in one file say a.zip?
1
vote
0answers
48 views

zip extraction, have `-d` ingnore one level zip folder structure (CLI)

I have a file My_big_zip_file.zip with the following file structure: unzip -l My_big_zip_file.zip yields: Archive: My_big_zip_file.zip Length Date Time Name --------- ---------- ----...
-2
votes
3answers
2k views

mysqldump a zipped dump

Till now I've created and zipped mysql dumps this way: mysqldump -u root -p --all-databases > /var/www/html/db-$(date +\%F-\%T).sql zip /var/www/html/db-$(date +\%F-\%T).zip /var/www/html/db-*.sql ...
1
vote
1answer
596 views

How to unzip only the first few lines of a zip archive?

I have a zipped text file a.zip I want to read the first 10 lines of it. Is it possible to do that without unzipping the whole file?
1
vote
2answers
1k views

Rename the files as they are extracted from the zip file as the name of the zip file itself

I have many zip files (think 100-150) in a folder. Each zip file has multiple files with different file extensions. I know how to write a bash for loop to unzip all the contents of these files. ...
5
votes
4answers
383 views

CLI way to compress individual files currently in compressed folder

I have a zipped file Data.zip that (if uncompressed) contains many files: file_1.txt file_2.txt ... ... I want to have a CLI command to turn this into a new folder Data_zipped that contains ...
0
votes
2answers
555 views

do not compress just zip files in command line

I have a bunch of photos, around 2 GB size to be precise. I need to download these images but I have to zip it first. Using zip command to compress the image files takes so much time to complete. I ...
0
votes
2answers
678 views

Is it possible to run some SSH commands using SFTP?

Having me not knowing much about Ubuntu; this is my first question here. So excuse me if it looks invalid question. I was told that its possible to run some SSH commands using SFTP. If that is ...
0
votes
1answer
99 views

What is the most secure way to encrypt a zip file? [closed]

I wanna encrypt a zip file in Linux so that no one could open or decrypt it with any tool. I mean use an encryption that has no flaw or backdoor. Is GnuPG-encryption the best solution? Thanks in ...
2
votes
0answers
39 views

How to list contents of compressed files in a hierarchy mode?

Consider we have a file named XX.zip Use command zipinfo -1 XX.zip which shows the below content: XX/ XX/X-Data.txt XX/YY/ XX/YY/Zero.txt I wanna below output instead, assume we have extracted the ...
0
votes
0answers
76 views

Make modded .iso bootable

I used archive maneger to extract a tinycore .iso (tinycore is a Linux distro) so I could diddle around. (Change the boot screen to my name, you know) I then used package maneger again to zip the ...
3
votes
1answer
73 views

How can I find all PDFs from multiple zip files that contain the search term?

Given: A directory with 1..n ZIP files of random names (all ending with .zip) Each zip file contains 1..n PDF files of random names (all ending with .pdf) All PDFs are from the same source and are ...
11
votes
3answers
2k views

How to create a zip with multiple files without sub-folders?

Initial situation: . ├── d0 ├── f0 ├── f1 │   └── d1 └── f2 └── f3 ├── d2 ├── d3 └── d4 What I need to do: I would like to create a zip containing d0, d1 and d4 which ...
0
votes
3answers
777 views

Can't unzip zip file in Terminal because of a single corrupted file

I've got a large zip file that I am using Terminal to unzip, like so: unzip /Volumes/9.25.17\ Backup/Documents.zip -d /Users/evan/Desktop/ When I try this, everything works fine until it tries to ...
1
vote
1answer
3k views

Can't extract a large zip file

System says my zip file is okay, but I can't extract it through unzip. I think maybe because it's such a large file (34 GB) that unzip might not support it. Is there a way to get this to work?
2
votes
0answers
110 views

Krusader: how to open .xpi file like .zip?

In Krusader, I can enter a .zip (or .tar etc.) file as if it were a directory, and view/copy/etc. the files in the archive. How can I tell Krusader to do the same for .xpi files (which are really ...
1
vote
1answer
689 views

Create a zip archive from multiple directories

My folder structure is: folder1 folder2 folder3 zipFolder How can I create a zip archive that consists of folder1, folder2, folder3 situated in zipFolder?
0
votes
1answer
551 views

Problem with unzipping archives on Ubuntu

I have two machines with Ubuntu: one 32bit and another 64bit. I made several zip archives on 64bit Ubuntu with password. However, I can not open them on 32bit one. I have checked password multiple ...
3
votes
1answer
835 views

Show content of huge txt/json file without extracting huge zip file

I got a zip file of ~400MB and within it there are certain txt/json files roughly in the range of 400MB - 1GB size. I simply want to view first 100 lines of a target file without extracting it from ...
2
votes
1answer
11k views

How to download a GitHub repo as .zip using command line

I am trying to download a .zip file from GitHub using the command line in Ubuntu. I am using wget command for it on a remote Ubuntu system. I run wget <link> where <link> is the address ...
0
votes
0answers
261 views

Lost password to ZIP file created with Gnome Archive Manager

I've lost the password to a zip file that was created under Unity, Nautilus file manager, which uses Ubuntu's Gnome Archive Manager (I must have mis-typed it when re-encrypting.) It seems that ...
2
votes
2answers
2k views

How to unzip a Japanese ZIP file, and avoid mojibake/garbled characters

I received a ZIP file from a Japanese customer. When I try to unzip it the file and folders names are messed up: $ unzip ~/Downloads/【新入荷ECM】資料.zip ... inflating: БyРVУ№Й╫ECMБzОСЧ┐/123_ГЖБ[ГXГPБ[ГX....
0
votes
0answers
179 views

Android Studio error after installing

I am using ubuntu 16.04 and after installing android studio and initializing project it is showing error failed to load zip file Gradle dependencies cache may be corrupt clicking on the blue link is ...
7
votes
1answer
3k views

How to rename/extract files with long names in zip archive

I have a zip which contains files with very long names. If I try to extract on the command line, I get the error "File name too long". If I use the graphical archive manager it will not extract the ...
4
votes
2answers
4k views

Q: How to show unzip progress?

How can I show progress, bar or percentage, when unzipping large files? 'unzip zipfile.zip' does not show any progress info?
0
votes
1answer
1k views

wordpress error ZipArchive is not installed on your server, but is required if you need to import demo content

I am setting up a new test Ubuntu 16.04 server with wordpress and avada. The server is running php 7.0 and in the avada system status dialogue I am getting an error saying that ZipArchive is not ...
1
vote
1answer
726 views

Why won't excluding a specific folder work while I'm making a .zip file?

I want to make a zip file of a directory except a specific folder which is into it. Here is my command: zip -r -x 'public/images/' tw.zip /var/www/html/m4/ I want to make a zip of this /var/www/html/...
0
votes
1answer
318 views

Having trouble installing LogicalDoc Community--cannot unzip install file

I am having trouble installing the free version of LogicalDoc, using the instructions in the text file and on their wiki. I've downloaded the .zip, but unzipping it is proving problematic. The unzip ...
1
vote
1answer
449 views

ZIP is stuck with a garbage file

I usually like to thoroughly research my problems before having to ask the community. But now I am stuck. I am using the following command: zip -ur zipfile.zip /volume1 In order to backup my ...
3
votes
4answers
939 views

How to create an encrypted archive in GNOME 3.22?

I have a system running Ubuntu GNOME 16.10 with GNOME 3.22 and I would like to create an encrypted 7z or zip archive, however when I right-click on a file, or folder, or a group of those I just get ...