Hot answers tagged

98

To install p7zip using Homebrew, first update your brew formulae to be sure you are getting the latest p7zip. $ brew update Use Homebrew to install p7zip: $ brew install p7zip Add all files in the sputnik directory to the compressed file heed.7z: $ 7z a heed.7z sputnik Unzip heed.7z: $ 7z x heed.7z


78

To exclude the bin and obj folders recursively you can use the command: 7z.exe a -t7z archive.7z FolderToArchive\ -mx0 -xr!bin -xr!obj


69

It comes down to a concept called entropy. See Wikipedia. The basic idea is that, if there existed a compression operation that could always make a file smaller, then logic dictates that said compression operation would be able to reduce any file to 0 bytes and still retain all the data. But this is absurd, because we know that 0 bytes can not convey any ...


64

If you're compressing things that are already compressed (AVI, JPEG, MP3), you won't gain much other than packing everything in a single file.


59

How exactly are you extracting the files? Are you using the command-line or the GUI? Are you dragging the files or selecting them and using the extract function? Are you using the shell-extension context-menu? If you enter a destination folder and then select the extract function or use the shell-extension, then they do not extract to a temporary folder ...


48

From the 7-Zip Help file: a (Add) command Adds files to archive. Examples 7z a archive1.zip subdir\ adds all files and subfolders from folder subdir to archive archive1.zip. The filenames in archive will contain subdir\ prefix. 7z a archive2.zip .\subdir\* adds all files and subfolders from folder subdir to archive ...


32

Not really. A .tar.gz or .tgz file really is two formats: .tar is the archive, and .gz is the compression. So the first step decompresses, and the second step extracts the archive. To do it all in one step, you need the tar program. Cygwin includes this, as does GnuWin32. tar xzvf foobaz.tar.gz ; x = eXtract ; z = filter through gZip ; v = be Verbose ...


32

First you need to start 7-zip "as administrator" the first time you run it to assign the context-menu option. Otherwise 7-zip does not have the right to change anything. (I don't know why 7-zip does not do this during install when it already has admin-rights but i always need to do this after installing 7-zip) Then go to Extra / Options. In the first tab ...


31

You are probably using the 32bit version on a 64bit OS. Uninstall it and install the 64bit version. I have done this several times and that solution works for me.


31

To exclude all .svn directories you need to add the -xr!?svn\* switch For example the following will create a backup of the C:\Project\To\Backup directory excluding any folders that satisfy ?svn: "C:\Program Files\7-Zip\7z.exe" a -r -tzip -y -xr!?svn\* Project.zip C:\Project\To\Backup\*


30

7z x duane.zip -oduane Usage: 7z <command> [<switches>...] <archive_name> [<file_names>...] [<@listfiles...>] <Commands> ... x: eXtract files with full paths <Switches> ... -o{Directory}: set Output directory Edit: 7z x *.zip -o* extracts all *.zip archives to subfolders with names of these ...


28

There is a freeware Windows file splitter called HJSplit Available here. The website claims it can split files of any type and size, but 9GB is a big file.


27

You can get 7zip on ubuntu by using following command: sudo apt-get install p7zip-full


26

Compression works by looking for repetitive patterns inside the items to compress. Also because you do not want to lose any data while compressing your files, the compression must be lossless(*). Now with that in the back in your head, think about the way files (items) are stored on a computer. At the lowest level, they are all just a bunch of 0's and 1's. ...


25

On the download page of 7-zip, there are several options for OS X. Unfortunately, they seem to be with a GUI, or not available at the moment. You can download p7zip though. p7zip is the command line version of 7-Zip for Unix/Linux, made by an independent developer It is distributed as Linux binaries and in source code form on Sourceforge. Download ...


24

You can do this from within the program itself. Simply launch the 7-Zip File Manager as Administrator (this is important), and then click on the Tools menu and select Options. Here you can set your file associations for many types, not just the .7z extension.


23

The ZIP format doesn't allow for encrypting file lists. This means that file lists are viewable by anyone. Only the contents of the files is encrypted, which means that no-one can read the file without your password. Due to this, 7-zip only asks for your password before unzipping. If you need a format that encrypts the file list, use 7Z and make sure you ...


23

Maybe you misunderstood what the author of that post meant. The vmlinuz file contains other things besides the gzipped content, so you need to find out where the gzipped content starts. To do that, use: od -A d -t x1 vmlinuz | grep '1f 8b 08 00' What this does is to show you where in that file you can find the gzip header. The output looks like: ...


23

It looks like you may want to try the x command instead of the e. For example 7za x test.7z worked for me and preserved full directory structures


22

Only possible solution is to use the command-line version (it doesn't work in the GUI [Add to Archive] dialog): 7z.exe a Archive.7z C:\Folder\* -r -x!*.avi -x!*.flac The "Parameters" input box in the GUI can only be used for compression parameters and cannot be used with standard command line parameters.


21

If you get the 7-Zip 9.13 beta you can change the archive type to LZMA2 and thus be able to use as many threads as you like, though the memory usage goes up phenomenally. Install the beta, right click the stuff you want to archive then under the 7-Zip contect menu click "Add to archive..." and you will get something similar to the window below. On the left ...


21

Doh! I really should have looked harder for an answer. From the 7-Zip FAQ: Why does drag-and-drop archive extraction from 7-Zip to Explorer use temp files? 7-Zip doesn't know folder path of drop target. Only Windows Explorer knows exact drop target. And Windows Explorer needs files (drag source) as decompressed files on disk. So 7-Zip ...


21

It's fairly safe to assume that the file parts just need to be concatenated together. The easiest way to do this is within 7-Zip - navigate to the folder in the 7-Zip file manager, right-click on the first file in the sequence, and select "Combine Files..." from the context menu. It can also be easily done on the command line. On Windows: copy /B ...


20

Use the -v option (v is for volume) -v100m will split the archive into chunks of 100MB. 7z -v option supports b k m g (bytes, kilobytes, megabytes, gigabytes)


20

I am not sure you can do what you are suggesting using the graphical user interface, but you can certainly from the command line: FOR %i IN (*.*) DO 7z.exe a "%~ni.7z" "%i" You would need to change directory (the cd command) to the F:\Downloads directory first, or whatever directory you would want to perform the mass compression. Also, it is easy enough ...


20

7-zip does not store passwords on your computer, it does not have that feature. Your issue is actually a limitation of the ZIP format when creating encrypted ZIP files. The data is encrypted, but not the file names. You can prove this by trying to extract the contents of the ZIP file. It will fail unless you specify the correct password. If you want file ...


19

There's nothing you can do in 7-Zip to prevent this. It is Chrome who downloads the file and opens it with its default application. At some point, Chrome was instructed to open ZIP files automatically after downloading. THis overrides the Ask where to save each file before downloading setting. There are at least three ways to revert this change: Open ...


19

Just add > NUL: to the end of your command.


17

The kernel sources now contain a script for this, extract-vmlinux. You don't need to roll your own. See this SO answer.



Only top voted, non community-wiki answers of a minimum length are eligible