--- layout: page category-title: Intermediate commands category-page: intermediate tags: author: Andrea Brites Marto title: 7z ---

A .7z. file is an archive format that stands for 7-zip. By default, Mac OS X does not know how to handle these files, but that is not a big deal because you can download for free in App Store. The program supports 7z, ZIP, CAB, ARJ, BZIP2, TAR, CPIO, RPM and DEB.
So, first of all, you need to download Unarchiver in order to use this command.
The basic syntax is:

 
		7z [adeltux] [-] [SWITCH] <ARCHIVE_NAME> <ARGUMENTS>
	
Here some useful options that we will use to explain some examples: The simplest way to use 7z if we want to extracts all files from archive archive.zip to the current directory.
 
		7z e archive.zip
	
Well, now we talk about the switches. There are many type of switches, we will see the most common ones.
-m (Set compression Method)
 
		-m<method_parameters>
	
The format for this switch depends on the archive type which are: