zip

container options from linux other than tar that work in Windows

container options from linux other than tar that work in Windows I have Windows 10 pc’s that do not have winzip or 7zip, or any kind of compression software installed. do not ask why As such the windows10 pc’s can only do an unzip. They are unable to work with a .tar file. I have …

Total answers: 2

How to correctly unzip weird character file in zip?

How to correctly unzip weird character file in zip? I’m really new in Linuxverse, so please understand if I’m asking standard question. I just downloaded a zip file using this link: https://io.genesis-ark.club/common/20240401/三国名将录(2).zip the first time I download using wget "https://io.genesis-ark.club/common/20240401/三国名将录(2).zip" I got ???????.zip after the download completed, so I just redownload it using wget "https://io.genesis-ark.club/common/20240401/三国名将录(2).zip" …

Total answers: 1

xargs: zip: No such file or directory

xargs: zip: No such file or directory By using the below command I am just trying to search specific files in a directory and zip them all. find /var/www/httpdocs/reports/files/ -type f -iname "report_202312*" -print0 | xargs -0 zip -r /var/www/httpdocs/reports/files/reports.zip If I run find command independently then its running fine and showing the result. But …

Total answers: 1

Kubuntu doesnt' differentiate *.3mf and *.zip files

Kubuntu doesnt' differentiate *.3mf and *.zip files I can’t set different programs for opening the mentioned filetypes in Kubuntu 22.04. I want to open *.zip files with ark and *.3mf files with Ultimaker Cura. When I try to change the default program via right click -> properties -> "open with" -> change, it changes the …

Total answers: 1

Zip with password on the terminal (Ubuntu 20.04)

Zip with password on the terminal (Ubuntu 20.04) I am running the command zip -p mypassword archieve.zip -r downloads/ and it creates a file mypassword.zip What am I doing wrong? Asked By: mangolassi || Source To know how a command works, try first the –help option and/or the man pages (if available). In my zip …

Total answers: 1

extract specific filenames from a zip without extracting it

extract specific filenames from a zip without extracting it Listing the contents of the zip file as below: wladmin@solarishost:/tmp$ unzip -l -q /tmp/package-391.zip | awk ‘{ print $4 }’ | sed -n ‘3,$p’ | grep -v ‘^$’ myapp/src/stage/bras.war myapp-configuration/src/config/dev/bras.war myapp-configuration/src/config/dev/deployfiles/acid.properties myapp-configuration/src/config/perf/deployfiles/acid.properties myapp-configuration/src/config/prod/deployfiles/acid.properties myapp-configuration/src/config/qa/deployfiles/acid.properties myapp-configuration/src/config/uat/deployfiles/acid.properties From the above I wish to create a delete file list …

Total answers: 1

How to prevent Nautilus from automatically extracting ZIP files on open

How to prevent Nautilus from automatically extracting ZIP files on open Upgrading from 22.04 to 23.10 I noticed that now in nautilus when I double click on a zip file it will automatically extract it in the current folder. This is really bad when I can have a multiple-GB zip file with a lot of …

Total answers: 1

What is incorrect in ZIP command line?

What is incorrect in ZIP command line? I am developing AWS Lambda (NET6). During the Github action execution (build, zip, upload) in a CloudFormation yml file, I have received the error: Run zip -jr customerlambda-356e9e4b8869b2cf7f483d739aa5a8aa34e0fc13.zip -i ./bin/Release/net6.0/publish/* zip error: Invalid command arguments (nothing to select from) Error: Process completed with exit code 16. It is …

Total answers: 1

Create a zip archive with Ark and use the method Store?

Create a zip archive with Ark and use the method Store? How can I create a zip archive using the graphical interface of Ark and use "Store" instead of "Deflate" for compression? UPDATE Apparently, there are significant differences between the versions regarding the compression methods. The statement ‘screenshot from a freshly installed Ark 22.12.3‘ by …

Total answers: 1

Listing the contents of an archive non-recursively using `zipinfo`

Listing the contents of an archive non-recursively using `zipinfo` Is there a flag that I can pass to the zipinfo command to list the contents of an archive non-recursively? For example, if the target archive contains three directories, which in turn contain five empty directories each, I don’t want the command to return fifteen elements, …

Total answers: 1

Why are directories sometimes listed explicitly in ZIP files?

Why are directories sometimes listed explicitly in ZIP files? While building an application that extracts ZIP files I noticed that sometimes ZIP files explicitly contain entries for the directories and sometimes not. Given for example the following structure folder1/ └── file1 I find files that give the following different outputs when listing the contents via …

Total answers: 1

Read file content in a zip file without unzipping?

Read file content in a zip file without unzipping? Given a zip file zipfile.zip, we know that it contains a file called text.txt. Is there a way to read the content of text.txt without unzipping zipfile.zip? Asked By: Idonknow || Source You can dump the file directly to stdout, for example. You are still technically …

Total answers: 3

How do I create a zip that preserves unicode character composition on linux?

How do I create a zip that preserves unicode character composition on linux? I’m on Debian. I have a file called Sóanr.jpg. According to https://emojidissector.com/, this is made of the following code points: S 0053 LATIN CAPITAL LETTER S o 006F LATIN SMALL LETTER O ́ 0301 COMBINING ACUTE ACCENT a 0061 LATIN SMALL LETTER …

Total answers: 1

Extract all content from multiple zip files contained in compressed tar archive

Extract all content from multiple zip files contained in compressed tar archive I receive a tar.gz file which packages multiple zip files – reproduced below: $ rm -Rf zipdir; mkdir zipdir; echo foo > zipdir/a.txt; echo bar > zipdir/b.txt; cd zipdir; zip -m a.zip a.txt ; zip -m b.zip b.txt; cd ..; tar -czvf zipdir.tar.gz …

Total answers: 1

How to extract the tar.gz file but without overwriting existing files?

How to extract the tar.gz file but without overwriting existing files? With the unzip -n /path/to/filename/filename.zip command the compressed file is uncompressed but does not overwrite existing files. This approach is useful when the same compressed file was uncompressed before and some files were either deleted or renamed – so with this n option they …

Total answers: 1

Can I check the contents of encrypted archive without using password?

Can I check the contents of encrypted archive without using password? I need to create and encrypt archive with some files. Later archive contents must be checked by someone who doesn’t know encryption password. I’ve done my research but couldn’t find proper tool for this job. The easiest way to encrypt archive is zip –encrypt …

Total answers: 1

php-zip with php 8.1.8

php-zip with php 8.1.8 I’m trying to install php-zip and i have already installed php 8.1.8 on ubuntu 22.04.1. When i try to install it, it fails and the error message says: The following packages have unmet dependencies: php8.1-zip : Depends: php8.1-common (= 8.1.2-1ubuntu2.5) but 8.1.8-1+ubuntu20.04.1+deb.sury.org+1 is to be installed As i understand, the php-zip …

Total answers: 1

gunzip multiple gz files with same compressed file name in multiple folders

gunzip multiple gz files with same compressed file name in multiple folders I have a directory where there are multiple folders, each folder contains multiple .gz files with the same zipped file name "spark.log". How can I unzip all of them at once and rename them like the gz file? My data looks like this …

Total answers: 2