Pack (Unix)

From Just Solve the File Format Problem
(Difference between revisions)
Jump to: navigation, search
(Added sample files)
 
(2 intermediate revisions by 2 users not shown)
Line 26: Line 26:
 
* 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
 
* 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)
 
* https://github.com/koalaman/pack - A modern implementation in Haskell (write-only)
 +
* [https://github.com/Xelitan/Free-Pascal-port-of-Unix-pack-unpack Modern Free Pascal port of pack/unpack for Windows]
  
 
== Sample files ==
 
== Sample files ==
* https://telparia.com/fileFormatSamples/archive/pack/
+
* {{DexvertSamples|archive/pack}}
  
 
== References ==
 
== References ==

Latest revision as of 06:35, 20 April 2026

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