Questions tagged [zip]

Questions about manipulating .zip files or zip archiving utilities.

Filter by
Sorted by
Tagged with
0
votes
0answers
19 views

How do i extract an incomplete Zip file in command line

Please help me to extract a RIFF file in Ubuntu 18.04 command line. I was in the process of creating a Zip file containing .avi, .mkv, and mp4 files but it was interrupted by a power outage. The ...
0
votes
0answers
21 views

Bash code for searching a directory for folders or files and zipping

I'm trying to write code to search a directory and subdirectories for folders with suffix -objects and individually zip them. The zip file would need to be named after the folders being zipped, and ...
0
votes
0answers
15 views

Zipped files from Windows

Long story short: I made a backup zip file protected with password, from Windows 10 using WinRar. I tried to extract them on Ubuntu 20.04 using the GUI and the unzip command, but it keeps telling me ...
0
votes
1answer
29 views

Using unzipped files directly as input

Say I have a *.zip file, and want to use the unzipped files - more precisely the filenames - directly as input to another command in the terminal. How could this be accomplished? An example: - I ...
-3
votes
1answer
92 views

Can't extract zip file Ubuntu 18.04

For example,I created a simple zip file (inside I have the sentence: hello world!) in desktop. I want to unzip it, but nothing happens. I also installed (zip unzip) with this command: sudo apt install ...
2
votes
0answers
32 views

creating zip without directory when unzip only files will come [closed]

I want to zip two file, I have try this cd xyz ls a.php b.php zip -r zipped_dir.zip * when i unzip zipped_dir then it give a folder zipped_dir -> a.php -> b.php but i don't want ...
2
votes
1answer
55 views

Zip archive name using on the first zipfile's name

I want to create the backup of the Wordpress website in a directory example.com. The output file should be in the following format: YmDHM_example.com.zip Using the current date and time, it would be:...
0
votes
0answers
52 views

Getting errors when I try to unzip splited zip files

OS version: root@triiage_1:~/zip# cat /etc/os-release NAME="Ubuntu" VERSION="18.04.4 LTS (Bionic Beaver)" ID=ubuntu ID_LIKE=debian PRETTY_NAME="Ubuntu 18.04.4 LTS" VERSION_ID="18.04" zip version: ...
0
votes
1answer
51 views

./configure command completed with warning, configure: WARNING: `missing' script is too old or missing

After running command of ./configure sams@sams-desktop:~/Desktop/softwedge-1.0.0$ ./configure checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane......
1
vote
1answer
40 views

How to Zip all folder in folder with password and remove folder after zip done?

How to zip all folder in Zip All Folder to New folder1.zip, New.folder2.zip, New_folder3.zip, Newfolder4.zip with password and auto remove folder after zip done. I have used this code: for i in */; ...
0
votes
1answer
93 views

Using zip command to transfer Ubuntu folders with symbol links in them to Windows

First I used zip to archive folder(s) in Ubuntu. Then I used 7zip to extract those folders on Windows. There are symbolic links in the folder(s). I'm sure everything pointed by any symbolic link in ...
2
votes
1answer
146 views

Extract a specific pdf from a zip file with lots of pdfs

Given: Name and Location of Zip-File. Example: collectionOfPdfFiles2017.zip Zip File is a collection of PDFs without folder structure Name of PDF File in Zip-File. Example: someFileFrom2017.pdf ...
1
vote
1answer
96 views

I have a zip file. I extracted it and modified some files. How do I list them?

Basically I'd like to do a diff and list binary-changed files recursively in the folder. I want to avoid cluttering the filesystem so I think this involves some piping. I searched some examples but ...
0
votes
0answers
16 views

zip files command line [duplicate]

I need to forward a zip file to Yahoo Mail, but Yahoo is returning the email because of its size. The compressed file is 45 MB. How can I compress via the command line so that each file has a maximum ...
1
vote
0answers
25 views

Unzip directory only up to a certain point

Having looked at a few answer, for instance this one: Unzip specific directory without creating top directory It's not what I'm looking for. The situation is a zip with the following directories: /...
4
votes
1answer
1k views

Linux unzip file from script without outputting the unzipped file names

I unzipped a file from a script with "unzip filename.zip" and in the terminal I see all the unzipped file names. I would like to unzip the file without printing those names so that I have a clean ...
6
votes
3answers
510 views

A file manager to open a zip file like opening a folder, instead of extract it by using a archive manager

I have a small disk space and I want to save every MB of it. I need only to read zip files without any editing. But reading it in a archive manager is unfriendly and lengthy, extracting zip file is ...
0
votes
2answers
121 views

Ubuntu extract zip package is flattened, sub-folders are missing

I zipped a folder in Windows. The folder contains files and sub-folders. I copied and extracted the zipped file to two Ubuntu machines: Ubuntu-A and Ubuntu-B. (I extracted them exactly the same way.) ...
0
votes
1answer
51 views

Let zip read source file list from a file

For example, zip -r output.zip file1 file2 file3 I need to put the file list "file1 file2 file3" into a text file "input_list.txt", then use the command like: zip -r output.zip -input input_list....
0
votes
0answers
39 views

Automatic zipping and archival of older logs

As my disk space is less , i would need to zip and archive the logs in another directory which are older than 30 days. Can someone please modify the below command to zip the 30 days older files and ...
0
votes
0answers
103 views

Can't unzip files from macOS on Samba share+Ubuntu 18.04

I have the downloads folder of my user profile in macOS symlinked to an SMB share on Ubuntu. I have VFS FRUIT enabled on the share level with: [DOWNLOADS] comment = User Download Files path = /...
1
vote
1answer
379 views

How do I access files and directories in a zip file using bash script?

I want to be able to navigate to files located in a zip file from the terminal. I can access the files and directories on the graphical user interface, but I can't seem to use cd to get to them like I ...
0
votes
0answers
240 views

What is the best way to zip a folder, but ignore one subfolder? [duplicate]

I am a novice to ubuntu, I am using 18.04 through PuTTY. I would like to use the zip command to zip an entire folder and all of its subfolders in the correct structure, except one subsubfolder. (full ...
0
votes
0answers
56 views

Unable to lock Zip file Ubuntu 18

I am trying to make a locked ZIP folder in Ubuntu 18.04. I followed this post, but it locked the files inside it and not the ZIP folder as a whole. I can open the ZIP folder without providing a ...
2
votes
2answers
418 views

How to split a zipfile into smaller zipfiles

Is there a way to split a ZIP archive into into smaller zipfiles, where you don't have to make them into one big zipfile to unpack the smaller zipfiles? For example: Split 25 GB file into 5 files of ...
0
votes
1answer
135 views

Package installation in Ubuntu [closed]

How shall I directly install a .zip package without actually unzipping it in Ubuntu 18.04? I am trying to install m2tex.
2
votes
1answer
401 views

How compress rar with context menu nautilus

In Ubuntu 16.04 i right click folder and select compress type and split size but in 18.04 compress menu not like before and choose type menu in gone i install unrar zip unzip p7zip-full p7zip-rar rar ...
1
vote
0answers
437 views

php7.0-zip not installing the package

While composer install I'm getting error magento/product-community-edition 2.1.10 requires ext-zip * -> the requested PHP extension zip is missing from your system. So I'm installing the zip ...
3
votes
3answers
3k views

How to zip specific files that are located in subdirectories

I have a directory that consists of many subdirectories, and each subdirectory contains different files such as: Directory All contains subdirectories A, B, C, and D. Each subdirectory contains files ...
0
votes
1answer
39 views

'date' on a command issued before midnight but ending after midnight. Today or tomorrow date?

I will be launching today a zip command naming the new file with the current date (date+\%Y\-%m\-%d.zip). The compression will probably end after midnight. Do you think the zip will be named with ...
0
votes
2answers
2k views

php7.0-zip packages have unmet dependencies

i have a wordpress site that uses Duplicator plugin. In order for this plugin to work it needs php7.0-zip [root@server1:~# apt-get -y install php7.0-zip Reading package lists... Done Building ...
0
votes
1answer
690 views

“Compress” option disappears from right click menu when I search for a file on Ubuntu 18.10

I'm searching through a folder to compress a file for sending, and I've noticed that if I Ctrl+F and type the file name, or just begin typing the file name, then the option to 'Compress...' the file ...
2
votes
2answers
2k views

Compressing folder without using additional space on the drive

I have an 18GB EC2 instance that has run out of space. I wanted to zip and transfer files off the server to a local drive. There is just about 1% free space remaining on it. This means that I cannot ...
1
vote
1answer
631 views

How to use fcrackzip on multiple cores?

By default fcrackzip uses only one core/thread. Is it possible to split the task on several processes?
1
vote
1answer
60 views

downloaded a file unzipped it and its a .15 file

i downloaded a file it was a .xz file so i unzipped it and the file name was Debian_for_stora3.18 it was not a folder it needs to be is there a way to convert it into a folder
0
votes
1answer
3k views

Split zip into smaller zip files

I need weekly to upload bunch of pdf file to grading platform, in the form of zip, but the website has limit of 250Mb per zip file, and it takes me too much time to split the zip I have into smaller ...
1
vote
1answer
49 views

Correct syntax of zipping all files and folder + hidden once, and exclude a single file

This is what i use at the moment but it doesnt include hidden files and folder. zip -r "/home/homeassistant/.homeassistant/backup-$(date +"%Y-%m-%d %H-%M-%S").zip" /home/homeassistant/.homeassistant/*...
8
votes
1answer
1k 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
727 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
852 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
1k 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
42 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
5k 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
44 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
127 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 ...
20
votes
3answers
11k 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
54 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
27 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....
1
vote
1answer
815 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, ...
2
votes
1answer
184 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: -...

1
2 3 4 5