Expands a compressed file to standard output.
The zcat command allows the user to expand and view a compressed file without uncompressing that file. The zcat command does not rename the expanded file or remove the .Z extension. The zcat command writes the expanded output to standard output.
| Item | Description |
|---|---|
| -n | Omits the compressed file header from the compressed file. Note: Use
the -n option if the file was compressed using the -n option.
|
| -V | Writes the current version and compile options to standard error. |
| Item | Description |
|---|---|
| File ... | Specifies the compressed files to expand. |
If the zcat command exits with a status of 1 if any of the following events occur:
If no error occurs, the exit status is 0.
| Item | Description |
|---|---|
| 0 | Successful completion. |
| >0 | An error occurred. |
To view the foo.Z file without uncompressing it, enter:
zcat foo.Z
The uncompressed contents of the foo.Z file are written to standard output. The file is not renamed.