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

User Commands (c) compress(1)
The amount of compression obtained depends on the size of the input le, the number of bits per
code, and the distribution of common substrings. Typically, les containing source code or plain
text are reduced by 50 to 60 percent.
If the le has an access control list (ACL), the ACL is preserved when the le is compressed. |
For more information about ACLs, see the acl(5) reference page.
Environment Variables
This command supports the use of the LANG, LC_ALL, LC_CTYPE, LC_MESSAGES, and
NLSPATH environment variables.
EXAMPLES
To compress the le folder and print the percentage reduction, enter:
compress -v folder
The system responds with a message like:
folder: Compression: 43.94% -- replaced with folder.Z
EXIT VALUES
The compress command returns the following exit values:
0 (zero) The compress utility successfully nished its processing.
1 An error occurred. The input le remains unmodied.
2 One or more les were not compressed because they would have increased in
size (and the -f ag was not specied).
>2 An error occurred. The input le remains unmodied.
RELATED INFORMATION
Commands: uncompress(1), zcat(1).
STANDARDS CONFORMANCE
The following features are HP extensions to the XPG4 Version 2 specication:
The -C, -F, -q, and -V ags are supported.
527188-007 Hewlett-Packard Company 269