HP-UX Reference (11i v1 05/09) - 1 User Commands N-Z (vol 2)
p
pack(1) pack(1)
unpack expands files created by pack
. For each file name specified in the command, a search is made for
a file called name
.z (or just name if name ends in
.z). If this file appears to be a packed file, it is replaced
by its expanded version. The new file has the
.z suffix stripped from its name, and has the same access
modes, access and modification dates, and owner as those of the packed file.
unpack returns a value that is the number of files it was unable to unpack. Failure may occur for the rea-
sons given for pcat, as well as for the following:
• A file with the ‘‘unpacked’’ name already exists;
• The unpacked file cannot be created.
Access Control Lists (ACLs)
pack retains all entries in a file’s access control list when compressing and expanding it (see acl(5)).
DEPENDENCIES
NFS
Optional access control list entries of networked files are summarized (as returned in
st_mode by
stat(), but not copied to the new file (see stat(2)).
WARNINGS
This command is likely to be withdrawn from X/Open standards. Applications using this command might
not be portable to other vendors’ systems. Instead of
pack
it is recommended to use compress utility
as it has the following advantages:
• The algorithm used to create the output files is frequently more effective in reducing the size of
files
• The compress utility can compress data from its standard input, not just a named regular file.
Thus it is useful in pipelines
zcat is recommended instead of pcat and, uncompress is recommended instead of unpack.
SEE ALSO
cat(1), compact(1), compress(1), acl(5).
STANDARDS CONFORMANCE
pack: SVID2, SVID3, XPG2, XPG3
pcat: SVID2, SVID3, XPG2, XPG3
unpack: SVID2, SVID3, XPG2, XPG3
Section 1−−678 Hewlett-Packard Company − 2 − HP-UX 11i Version 1: September 2005