Moderne Kommandozeilen-Komprimierungsprogramme

555
Mikko Ohtamaa

Ich verschiebe häufig große Dateien von Server zu Server.

UNIXes wird mit Standard-Kompressoren von gzip und bzip2 geliefert. Welche offenen Optionen gibt es jedoch über diese hinaus, insbesondere wenn mehrere Kerne verwendet werden? Ich kenne pzip2, das ich momentan verwende.

Gibt es aktuelle Benchmarks und Diagramme, wie schnell / effektiv Kompressoren zu sehen sind, was zwischen Zeit und Dateigröße abhängt?

Eine Open-Source-Alternative, die in Linux / OSX vertrieben wird, wird bevorzugt. Windows-Unterstützung nicht erforderlich.

2
Wenn Sie pzip2 sagen, nehme ich an, dass Sie pbzip2 meinen? Croad Langshan vor 12 Jahren 0

2 Antworten auf die Frage

3
Croad Langshan

You don't say much about your priorities, but it sounds like compression time for large files is your main priority?

This claims to be suited to that case (see the -l flag):

http://manpages.ubuntu.com/manpages/lucid/man1/lrzip.1.html

On the other end of the tradeoff (high compression ratio, long compression time), some notable software distributions have started using this recently:

https://en.wikipedia.org/wiki/Xz

http://tukaani.org/xz/

Re benchmarking: why not run some quick tests youself? Benchmarks are often misleading because results can vary a lot depending on the precise workload and test conditions. Still, here's a report in German (try google translate) about somebody else's benchmarking:

http://www.linux-community.de/Internal/Artikel/Print-Artikel/LinuxUser/2010/10/Aktuelle-Komprimierprogramme-in-der-Uebersicht/(printView)/true

1
user116587

Also worth looking at are pigz for parallelism and 7zip if Windows support does rear its head.