Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ unpack(1) — Reliant UNIX 5.44c4

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

cat(1)

compress(1)

pack(1)

pcat(1)

uncompress(1)

zcat(1)

unpack(1)                                                         unpack(1)

NAME
     unpack - expand compressed files

SYNOPSIS
     unpack file...

DESCRIPTION
     unpack expands files compressed by pack to their original form.

     Note: You can also compress files with compress and uncompress them
     again using uncompress.

OPERANDS
     file Name of a file that was compressed with pack. You may specify the
          name of the file with or without the .z extension; however, the
          name must end in .z.

          If the specified file is a packed file, it will be replaced by
          its expanded version. The new file has the .z extension stripped
          from its name and receives the same access permissions and access
          and modification dates as the packed file.

          On systems in which the RSTCHOWN variable is set, the user who
          invokes unpack is made the owner of the expanded file (unless the
          invoking user is the system administrator). On other systems the
          owner stays the same.

          If there are links to the compressed file, unpack gives the warn-
          ing:

          unpack: file.z: Warning: file has links

          but the file is nevertheless expanded.

EXIT STATUS
     0   Successful termination

     >0  An error occurred. In this case, file is not created and the ori-
         ginal file is retained.

ERROR MESSAGES
     All the errors described below result in the failure of the unpack
     command, i.e. the file remains in compressed form.

     unpack: file: already exists

          There is already a file with the name that the packed file would
          be assigned after expansion.







Page 1                       Reliant UNIX 5.44                Printed 11/98

unpack(1)                                                         unpack(1)

     unpack: file: cannot create

          The unpacked file cannot be created because you have no write
          permission for the directory in which this file is to be created.

     unpack: file.z: cannot open

          You have no read permission for the packed file file.z, or file.z
          does not exist.

     unpack: verylongfilename: file name too long

          The file name contains more than {NAMEMAX} bytes.

     unpack: file.z: not in packed format

          file.z is not a file compressed with pack.

LOCALE
     The LCMESSAGES environment variable governs the language in which
     message texts are displayed. If LCMESSAGES is undefined or is defined
     as the null string, it defaults to the value of LANG. If LANG is like-
     wise undefined or null, the system acts as if it were not internation-
     alized.

     The LCALL environment variable governs the entire locale. LCALL
     takes precedence over all the other environment variables which affect
     internationalization.

EXAMPLES
     The file catherine is first compressed with pack and then expanded
     with unpack:

     $ ls -l
     total 532
     -rw-------   1 anne     other     268716   Jan 05 10:03 catherine

     $ pack catherine
     pack: catherine: 41.7% Compression

     $ ls -l
     total 312
     -rw-------   1 anne     other     156692   Jan 05 10:03 catherine.z

     $ unpack catherine
     unpack: catherine: unpacked

     $ ls -l
     total 532
     -rw-------   1 anne     other     268716   Jan 05 10:03 catherine




Page 2                       Reliant UNIX 5.44                Printed 11/98

unpack(1)                                                         unpack(1)

SEE ALSO
     cat(1), compress(1), pack(1), pcat(1), uncompress(1), zcat(1).




















































Page 3                       Reliant UNIX 5.44                Printed 11/98

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026