Print this page
12284 errors in compress(1) and pack(1) man pages


  49            o      the file name is too long to add the .z suffix
  50 
  51            o      the file has links
  52 
  53            o      the file is a directory
  54 
  55            o      the file cannot be opened
  56 
  57            o      the file is empty
  58 
  59            o      no disk storage blocks are saved by packing
  60 
  61            o      a file called file.z already exists
  62 
  63            o      the .z file cannot be created
  64 
  65            o      an I/O error occurred during processing.
  66 
  67 
  68        The last segment of the file name must be short enough to allow space
  69        for the appended .zextension. Directories cannot be compressed.
  70 
  71    pcat
  72        The pcat command does for packed files what cat(1) does for ordinary
  73        files, except that pcat cannot be used as a filter. The specified files
  74        are unpacked and written to the standard output.
  75 
  76 
  77        pcat returns the number of files it was unable to unpack. Failure can
  78        occur if:
  79 
  80            o      the file cannot be opened;
  81 
  82            o      the file does not appear to be the output of pack.
  83 
  84    unpack
  85        The unpack command expands files created by pack. For each file
  86        specified in the command, a search is made for a file called file.z (or
  87        just file, if file ends in .z). If this file appears to be a packed
  88        file, it is replaced by its expanded version.  The new file has the .z
  89        suffix stripped from its name, and has the same access modes, access


 121 
 122 OPERANDS
 123        The following operands are supported:
 124 
 125        file
 126                A path name of a file to be packed, unpacked, or pcated; file
 127                can include or omit the .z suffix.
 128 
 129 
 130        -
 131                pack uses Huffman (minimum redundancy) codes on a byte-by-byte
 132                basis. If the - argument is used, an internal flag is set that
 133                causes the number of times each byte is used, its relative
 134                frequency, and the code for the byte to be printed on the
 135                standard output. Additional occurrences of - in place of file
 136                causes the internal flag to be set and reset.
 137 
 138 
 139 USAGE
 140        See largefile(5) for the description of the behavior of pack, pcat, and
 141        unpack when encountering files greater than or equal to 2 Gbyte ( 2^31
 142        bytes).
 143 
 144 EXAMPLES
 145        Example 1 Viewing a Packed File
 146 
 147 
 148        To view a packed file named file.z use:
 149 
 150 
 151 
 152        example% pcat file.z
 153 
 154 
 155 
 156        or just:
 157 
 158 
 159 
 160        example% pcat file
 161 
 162 
 163        Example 2 Making and Unpacked Copy:
 164 
 165 
 166        To make an unpacked copy, say nnn, of a packed file named file.z
 167        (without destroying file.z) use the command:
 168 
 169 
 170 
 171        example% pcat file >nnn
 172 
 173 
 174 ENVIRONMENT VARIABLES
 175        See environ(5) for descriptions of the following environment variables
 176        that affect the execution of pack, pcat, and unpack: LC_CTYPE,
 177        LC_MESSAGES, and NLSPATH.
 178 
 179 EXIT STATUS
 180        The following exit values are returned:
 181 
 182        0
 183              Successful completion.


 190 
 191 
 192 ATTRIBUTES
 193        See attributes(5) for descriptions of the following attributes:
 194 
 195 
 196 
 197 
 198        +---------------+-----------------+
 199        |ATTRIBUTE TYPE | ATTRIBUTE VALUE |
 200        +---------------+-----------------+
 201        |CSI            | Enabled         |
 202        +---------------+-----------------+
 203 
 204 SEE ALSO
 205        cat(1), compress(1), zcat(1), fgetattr(3C), fsetattr(3C),
 206        attributes(5), environ(5), largefile(5)
 207 
 208 
 209 
 210                                 March 13, 2008                         PACK(1)


  49            o      the file name is too long to add the .z suffix
  50 
  51            o      the file has links
  52 
  53            o      the file is a directory
  54 
  55            o      the file cannot be opened
  56 
  57            o      the file is empty
  58 
  59            o      no disk storage blocks are saved by packing
  60 
  61            o      a file called file.z already exists
  62 
  63            o      the .z file cannot be created
  64 
  65            o      an I/O error occurred during processing.
  66 
  67 
  68        The last segment of the file name must be short enough to allow space
  69        for the appended .z extension. Directories cannot be compressed.
  70 
  71    pcat
  72        The pcat command does for packed files what cat(1) does for ordinary
  73        files, except that pcat cannot be used as a filter. The specified files
  74        are unpacked and written to the standard output.
  75 
  76 
  77        pcat returns the number of files it was unable to unpack. Failure can
  78        occur if:
  79 
  80            o      the file cannot be opened;
  81 
  82            o      the file does not appear to be the output of pack.
  83 
  84    unpack
  85        The unpack command expands files created by pack. For each file
  86        specified in the command, a search is made for a file called file.z (or
  87        just file, if file ends in .z). If this file appears to be a packed
  88        file, it is replaced by its expanded version.  The new file has the .z
  89        suffix stripped from its name, and has the same access modes, access


 121 
 122 OPERANDS
 123        The following operands are supported:
 124 
 125        file
 126                A path name of a file to be packed, unpacked, or pcated; file
 127                can include or omit the .z suffix.
 128 
 129 
 130        -
 131                pack uses Huffman (minimum redundancy) codes on a byte-by-byte
 132                basis. If the - argument is used, an internal flag is set that
 133                causes the number of times each byte is used, its relative
 134                frequency, and the code for the byte to be printed on the
 135                standard output. Additional occurrences of - in place of file
 136                causes the internal flag to be set and reset.
 137 
 138 
 139 USAGE
 140        See largefile(5) for the description of the behavior of pack, pcat, and
 141        unpack when encountering files greater than or equal to 2 Gbyte (2^31
 142        bytes).
 143 
 144 EXAMPLES
 145        Example 1 Viewing a Packed File
 146 
 147 
 148        To view a packed file named file.z use:
 149 
 150 
 151 
 152        example% pcat file.z
 153 
 154 
 155 
 156        or just:
 157 
 158 
 159 
 160        example% pcat file
 161 
 162 
 163        Example 2 Making an Unpacked Copy:
 164 
 165 
 166        To make an unpacked copy, say nnn, of a packed file named file.z
 167        (without destroying file.z) use the command:
 168 
 169 
 170 
 171        example% pcat file >nnn
 172 
 173 
 174 ENVIRONMENT VARIABLES
 175        See environ(5) for descriptions of the following environment variables
 176        that affect the execution of pack, pcat, and unpack: LC_CTYPE,
 177        LC_MESSAGES, and NLSPATH.
 178 
 179 EXIT STATUS
 180        The following exit values are returned:
 181 
 182        0
 183              Successful completion.


 190 
 191 
 192 ATTRIBUTES
 193        See attributes(5) for descriptions of the following attributes:
 194 
 195 
 196 
 197 
 198        +---------------+-----------------+
 199        |ATTRIBUTE TYPE | ATTRIBUTE VALUE |
 200        +---------------+-----------------+
 201        |CSI            | Enabled         |
 202        +---------------+-----------------+
 203 
 204 SEE ALSO
 205        cat(1), compress(1), zcat(1), fgetattr(3C), fsetattr(3C),
 206        attributes(5), environ(5), largefile(5)
 207 
 208 
 209 
 210                                February 5, 2020                        PACK(1)