7-Zip compression options -mx ( LINUX )
This is the most important and useful option you can use and change the optimization settings in 7-Zip on the command line:
-mx, 7-Zip compression switch:
- -mx0 – Don’t compress at all. ( Is called “copy mode.” )
- -mx1 – Very low compression. (It is called “fastest” mode. )
- -mx3 - Fast compression mode.
- -mx5 - Same as above, but “normal.”
- -mx7 – “maximum” compression.
- -mx9 - “ultra” compression (slowest).
- -mmt – Enable multithreading. (if you have quad-core and a huge archive – Specify “on” or “off”.).
7-Zip example (store mode, not compression):
[root@server1]# 7za a -mx0 mysql.zip /var/lib/mysql/








