When we want to compress something we pack it in .tar, .gz, . Bz2 or some combination of these, at least that I have been able to appreciate in most cases. Compress in .zip is something that belongs to the pastI could even include here .ace), while compressing in .rar it is not exactly to our liking, well because .rar It is a non-free format, or any other reason 🙂
The point is that it exists . 7z (7zip) that compresses much more than the aforementioned. When I wanted to compress something to the maximum with 7zip I had to write a command for it, but not anymore, because I made this option in the services menu (right click options) of KDE:
1. To add this option to our system we must first download the file .desktop:
2. We must keep it in $ HOME / .kde / share / kde4 / services / so that it is enabled for our user, or save it in / usr / share / kde4 / services / so that it is enabled for all users of the system. In case the folder $ HOME / .kde / share / kde4 / o $ HOME / .kde / share / kde4 / services / it does not matter, you create the missing folder 😉
3. They must have the package installed p7zip-full y p7zip
4. Close Dolphin (file manager) and reopen it, this option should already appear.
When using this option, what is executed in the background is the following:
7za a -t7z -m0=lzma -mx=9 -ms=on %u.7z %f
- 7za to : To add files
- -t7z : Specifies that the output file will be .7z
- -m0 = lzma : Compression parameters, you can read about it here!
- -mx-9 : We specify that we want to compress to the maximum
- -ms = on : Solid file
- % u.7z : Output file, the %u means the path of the file that we want to compress, followed by . 7z We indicate the final compressed file will be created right there where the original is
- %f : This will be the file or folder that we want to compress
- So much % u.7z Be %f they are KDE's own parameters, that is, they are not related to Bash or 7za.
To give you an idea of how much 7zip compresses, a dump of the FromLinux database (.sql) weighed 715MB a few weeks ago, compressed with 7zip is only 96MB 😀
Anyway ... I no longer have to be typing a command to compress to the maximum with 7zip, now I can do it from the options menu in Dolphin 😉
I hope this has served you, greetings (I.e.