uncompress [ -c ] [ -F ] [ -f ] [ -n ] [ -q ] [ -V ] [ File ... ]
The uncompress command restores original files that were compressed by the compress command. Each compressed file specified by the File parameter is removed and replaced by an expanded copy. The expanded file has the same name as the compressed version, but without the .Z extension. If the user has root authority, the expanded file retains the same owner, group, modes, and modification time as the original file. If the user does not have root authority, the file retains the same modes and modification time, but acquires a new owner and group. If no files are specified, standard input is expanded to standard output.
File ... | Specifies the compressed files to restore. |
The uncompress command detects an error and exit with a status of 1 if any of the following events occur:
If no error occurs, the exit status is 0.
0 | Successful completion. |
>0 | An error occurred. |
To uncompress the foo.Z file, enter:
uncompress foo.Z
The foo.Z file is uncompressed and renamed foo.
The compress command uses the modified Lempel-Zev algorithm described in "A Technique for High Performance Data Compression," Welch, Terry A. IEEE Computer, vol. 17, no. 6 (June 1984), pp. 8-19.
The compress command, pack command, unpack command, zcat command.
Commands Overview in AIX Version 4.3 System User's Guide: Operating System and Devices.