7z is a compressed archive file format. It's also an application that handles multiple compression formats.

learn more… | top users | synonyms

0
votes
2answers
51 views

How to get number of files in a 7z

I want to get the number of files (included directories) contained in the root of a 7z archive, but the 7z command on Linux don’t bring a simple way to only get the number and noting else. For ...
0
votes
0answers
45 views

E_FAIL Error in 7zip

I've done a Backup some time ago using 7zip, in which I split the Files in 14 2GB (approximately) files. I'm running Ubuntu Server 15.10. This is what I'm trying to run in order to extract them: 7z ...
1
vote
1answer
107 views

Command to verify CRC (CRC32) hashes recursively

With the commands md5sum, sha1sum, sha256sum I can take a text file having an hash and a path per line and verify the entire list of files in a single command, like sha1sum -c mydir.txt. (Said text ...
1
vote
1answer
77 views

How to use bash to archive all directories?

I'm trying to learn bash -slowly- but finding it difficult to get a grasp of the more technical aspects without a real-word example that fits something I would want to use. To that end, I'd like to ...
1
vote
1answer
26 views

Function for archiving arbitrary files with encryption

I'm no so advanced in bash so can not make my function work properly. Here is the code: archive() { for f in $PWD do for ((i=1; i++;)) do 7za a "$1".7z $f -pSECRET -mhe done ...
0
votes
1answer
116 views

Compressing files using p7zip from the command-line

I would like to compress four ISO files using 7z into a new archive called ISOs.7z from the command-line on my Sabayon machine. These are the commands I have tried so far (I know none of these specify ...
1
vote
0answers
63 views

Pass passwordlist to 7zip

I'm writing a shellscript to automate my 7zip, rar etc extraction tasks. Normally JDownloader2 does this for me when I download files through it, but when I download files by hand I will still need to ...
1
vote
0answers
169 views

Get percentage information from 7z command in bash

With archives containing more than 30 files, list of extracted files quickly stops being interesting. I a making a script that extracts a .war archive into a tomcat app folder: When looking in help ...
1
vote
1answer
132 views

7z is not excluding directories from exclude file

In a bash script I want to create an archive with 7z and exclude some directories. I created an exclude file that only contains one entry: excl_dir/ My script: #!/bin/bash archiveName="my_archive" ...
2
votes
1answer
694 views

How to compress a mysql dump using 7z via a pipe?

I've been attempting to compress my mysqldump output via 7z using the pipe operator (I have seen this question, but its answer uses xz not 7z). This is what I have tried so far: mysqldump -u root -p ...
0
votes
1answer
38 views

CentOS Crontab - Extract particular file name

Let's assume that I have a file with extension of .7z and I have a crontab that extracts this file. But the name is unknown, only the extension is known, is it possible to extract it from crontab? ...
0
votes
1answer
164 views

CentOS - 7za - Extract file with password

I have a .7z file which I need to extract the contents of. The problem is, that it's password protected and currently, I have to SSH into the server and enter the password. I would like to this ...
1
vote
1answer
34 views

7za with password not working while extraction

I am creating a password protected file using 7za, command: 7za a /usr/test/loc/file.del.7za /usr/test/loc/file.del -p .... Creating archive /usr/test/loc/file.del.7za Enter password ...
2
votes
1answer
146 views

Linux 7zip destination folder?

I have wondered a long time how to do this and read already many manuals but dont get this to work. I want to zip with 7zip a folder to specific destination. There is in manual a guide to use ...
1
vote
1answer
161 views

How to undo and revert an accidental `7z e`

I accidentally typed 7z e archive.7z and all the files ended up in my home directory when I wanted to extract them in a subfolder. How can I clean the mess and remove all those files?
0
votes
1answer
650 views

How to use PPMD with 7z under Linux?

How can I use the 7z compression with PPMD algorithm? It produces better compression than the default in 7z.
-2
votes
1answer
86 views

7z command for unzip -p -a [duplicate]

I have a command line execution in my .sh file which unzips the file which is in zip format. Below is the command which unzips the file unzip -p -a. elif [ "${FILECOMMANDOUTPUT}" = "Zip" ] then ...
-2
votes
2answers
890 views

Corresponding 7zip command for unzip -p -a

I have a question regarding unzip command in Unix. As of now my Unix command unzip -p -a is able to zip the file which are lesser in size. But if the file size is larger then the command is not able ...
0
votes
2answers
188 views

Why don't the servers use 7z?

By default on a UNIX machine install, I can see the logs are rotated with gzip. Question: Why doesn't the UNIX world use by default 7z? It would be much more efficient than gzip.. I just compressed ...
0
votes
1answer
648 views

Extracting a 2.7GB 7z file

I currently have a 2.7GB 7z file that backed up my computer (it extracts to about 6.2GB of data) I am running on a Chromebook with Crouton. The Chroot is running Kali with a Unity front end. I am ...
1
vote
3answers
525 views

What is the correct way to upgrade 7zip on Solaris 10?

I currently have an old old version of 7zip installed (4.55 beta) on Solaris 10. It is located in /usr/bin/7z. Found using which 7z I have downloaded a new version 9.20.1. The README says to edit the ...
2
votes
1answer
128 views

Can p7zip create smaller zip files than winzip?

7-Zip for Windows creates smaller zip archives than WinZip, so presumably P7zip can create smaller zip archives than Zip in Linux. So how do I create zip files using P7zip in Linux?
1
vote
1answer
330 views

How to extract the Nth file using 7-zip

I have an archive which, for reasons beyond my comprehension, contains 900 files all with the same name. That means that if I ask 7zip to extract them all, at the end there is just one file. The ...
2
votes
1answer
384 views

Delete files in .7z package

I am using FileRoller to manage the *.7z and using Ubuntu 12.10. When the *.7z file is encrypted, I can add new files to the package, I can modify text files, can I delete files too?
2
votes
2answers
6k views

How to use 7z to compress via pipe?

I'm using this for creating backups securely (? - is it really secure? with a good password?): # ENCRYPT ORIGDIR="DIRECTORYNAMEHERE"; tar cvf - "${ORIGDIR}/" 2>/dev/null | gzip -9 - ...
8
votes
2answers
3k views

Add a file to a different path in a zip file

I have a file that placed in the following directory: folder_A/another_folder_A/file_to_add.xml Now, what I want to do is simply add the file to a folder in an existing zip archive. For example ...
30
votes
2answers
44k views

scp and compress at the same time, no intermediate save

What is the canonical way to: scp a file to a remote location compress the file in transit (tar or not, single file or whole folder, 7za or something else even more efficient) do the above without ...
6
votes
4answers
1k views

Find recursively all archive files of diverse archive formats and search them for file name patterns

At best I would like to have a call like this: $searchtool /path/to/search/ -contained-file-name "*vacation*jpg" ... so that this tool does a recursive scan of the given path takes all files with ...
5
votes
1answer
615 views

Can I command 7z to skip compression (but not inclusion) of specific files while compressing a directory with its subs?

There is a feature of the WinRAR (for Windows) archiver I love a lot: it can be set up to skip trying to compress particular files (based on their extension (name pattern)) while including them into a ...
3
votes
1answer
1k views

7zip context menu appears twice

7zips context menu appears twice to me when I right-click to a file.. Same thing happens in both dolphin and krusader. It looks like this: I've found 7zips readme.txt in ...
5
votes
2answers
8k views

How to use 7z to archive all the files and directories (including hidden ones) in a directory?

Because of specifics of my archiving needs I am not comfortable with solid tar.gz archives and use 7z instead. I use the following command to do this: 7z a -t7z -m0=lzma -mx=9 -mfb=64 -md=32m ...
8
votes
4answers
6k views

howto inflate AND extract a .tar.bz2 using the 7-zip command line tool

I have a .tar.bz2 file that I want to be decompressed and extracted via the 7-zip commandline tool. So basically I'm looking for the equivalent of tar -xjf foo.tar.bz2 with 7-zip there is only the ...
1
vote
3answers
3k views

7z command line add file to a flat directory 7z file

I would like to compress file "./data/x.txt" to path "./data/x.7z". When running 7z a ./data/x.txt.7z ./data/x.txt The file "./data/x.txt" holds data/x.txt as opposed to just (what I want) ...