Pack (Unix)

From Just Solve the File Format Problem
(Difference between revisions)
Jump to: navigation, search
m (Jsummers moved page Pack to Pack (Unix): There aren't many file formats simply named "pack", but it's too common a word to reserve for such a rare format.)
m (Change telparia.com samples link to template)
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
{{FormatInfo
 
{{FormatInfo
|name=pack
+
|name=pack (Unix)
 
|formattype=electronic
 
|formattype=electronic
 
|subcat=Compression
 
|subcat=Compression
 
|extensions={{ext|z}}
 
|extensions={{ext|z}}
 +
|wikidata={{wikidata|Q29650301}}
 
}}
 
}}
'''pack''' is a command in Unix-style operating systems to compress files using [[Huffman coding]]. Files normally have a .z extension, appended to their names including any other extension they may already have in their uncompressed versions, e.g., '''file.txt.z'''.
+
{{DISPLAYTITLE:pack (Unix)}}'''pack''' is a command in Unix-style operating systems to compress files using [[Huffman coding]]. Files normally have a lowercase '''.z''' extension, appended to their names including any other extension they may already have in their uncompressed versions, e.g., '''file.txt.z'''.
  
 
== See also ==
 
== See also ==
* [[compress]]: A compressed file format with a similar filename extension
+
* [[compress (Unix)]]
 +
* [[compact (Unix)]]
  
 
== Identification ==
 
== Identification ==
Files begin with bytes <code>0x1F 0x1E</code>.
+
Files begin with bytes {{magic|0x1F 0x1E}}.
  
The gzip source code mentions an "old pack format" that begins with <code>0x1F 0x1F</code>.
+
The gzip source code mentions an "old pack format" that begins with {{magic|0x1F 0x1F}}.
 +
 
 +
See also [[compress (Unix)#The 0x1f compression family]].
  
 
== Software ==
 
== Software ==
* [http://www.gnu.org/software/gzip/ GNU gzip] can uncompress '''pack''' files.
+
* [https://www.gnu.org/software/gzip/ GNU gzip] ''[Note: Broken in v1.6 - 1.8]''
* https://github.com/koalaman/pack
+
* [https://github.com/temisu/ancient Ancient]
 +
* {{Deark}}
 +
* [https://www.tuhs.org/cgi-bin/utree.pl?file=V10 Tenth Edition of Unix] → v10src.tar.bz2 → cmd/pack/ - Source code
 +
* illumos: [http://src.illumos.org/source/xref/illumos-gate/usr/src/cmd/pack/ pack], [http://src.illumos.org/source/xref/illumos-gate/usr/src/cmd/unpack/ unpack] - Source code
 +
* https://github.com/koalaman/pack - A modern implementation in Haskell (write-only)
 +
 
 +
== Sample files ==
 +
* {{DexvertSamples|archive/pack}}
  
 
== References ==
 
== References ==
 
* [http://www.mkssoftware.com/docs/man1/pack.1.asp pack man page (MKS Toolkit)]
 
* [http://www.mkssoftware.com/docs/man1/pack.1.asp pack man page (MKS Toolkit)]
 
* [http://publib.boulder.ibm.com/infocenter/zos/v1r13/index.jsp?topic=%2Fcom.ibm.zos.r13.bpxa500%2Fpack.htm pack man page (IBM)]
 
* [http://publib.boulder.ibm.com/infocenter/zos/v1r13/index.jsp?topic=%2Fcom.ibm.zos.r13.bpxa500%2Fpack.htm pack man page (IBM)]
* [http://www.vidarholen.net/contents/blog/?p=691 An ode to pack: gzip’s forgotten decompressor]
+
* [https://www.vidarholen.net/contents/blog/?p=691 An ode to pack: gzip’s forgotten decompressor]

Latest revision as of 02:54, 28 December 2023

File Format
Name pack (Unix)
Ontology
Extension(s) .z
Wikidata ID Q29650301

pack is a command in Unix-style operating systems to compress files using Huffman coding. Files normally have a lowercase .z extension, appended to their names including any other extension they may already have in their uncompressed versions, e.g., file.txt.z.

Contents

[edit] See also

[edit] Identification

Files begin with bytes 0x1F 0x1E.

The gzip source code mentions an "old pack format" that begins with 0x1F 0x1F.

See also compress (Unix)#The 0x1f compression family.

[edit] Software

[edit] Sample files

[edit] References

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox