Open System Services Shell and Utilities Reference Manual (G06.28+, H06.05+)

unpack(1) OSS Shell and Ut
ilities Reference Manual
NAME
unpack - Expands les compressed by the pack command
SYNOPSIS
unpack le[.z] ...
DESCRIPTION
The unpack command expands les created by pack. For each le specied, unpack searches
for a le named le.z. If this le is a packed le, unpack replaces it with its expanded version.
The unpack command names the new le by removing the .z sufx from le.z. The unpack
command tries to preserve the access modes, access and modication dates, and owner from the
compressed le, but it can do so only if you have the appropriate privileges (see the chmod(1)
reference page); otherwise, unpack expands the compressed le and assigns your owner and
group ID to the new le.
The exit value is the number of les the unpack command was unable to expand (unpack). A le
cannot be unpacked if any one of the following occurs:
The le cannot be opened.
The le is not a packed le.
A le with the unpacked lename already exists.
The unpacked le cannot be created.
If the le has an access control list (ACL), the ACL is preserved when the le is unpacked. For |
more information about ACLs, see the acl(5) reference page.
Operands
file[.z] Species the lename of the le to be unpacked. If the .z sufx is omitted, it is
assumed.
Environment Variables
This command supports the use of the LANG, LC_ALL, LC_CTYPE, LC_MESSAGES, and
NLSPATH environment variables.
EXAMPLES
To unpack packed les, enter:
unpack chap1.z chap2
This command expands the packed les chap1.z and chap2.z, replacing them with les named
chap1 and chap2. Note that you can give unpack lenames either with or without the .z sufx.
NOTES
1. unpack operates only on les whose names end in .z. As a result, when you specify a
lename le that does not end in .z, unpack adds that sufx and searches the directory
for the lename le.z.
2. The unpack command writes a warning to the standard output le if the le it is unpack-
ing has links. Any other les linked to the packed les original inode still exist and are
still packed.
3. If the le being unpacked has a symbolic link, the new unpacked le has a different
inode than the packed le from which it was created.
936 Hewlett-Packard Company 527188-007