Today I encountered a file which was compressed but I was unable to see what compression method was used. The header started with 78 9c ec. Good friend Google told me that it could be a Zlib compression. But how to use the Zlib library from the command line?
Fortunately PHP has a command available, gzuncompress(). A short piece of php code uncompresses the file for me:
<?php
$file="mycompressedfile";
$handle = fopen($file, "r");
$inhoud=fread($handle, filesize($file));
$uncompressed = gzuncompress($inhoud);
echo $uncompressed;
?>