commands
gunzip — decode gzip data
Decodes gzip data; -c retains the compressed input and writes stdout; -t checks integrity. Default decompression may replace the compressed file. Example assumes a fresh archive lab fixture with new output names.
Formal Syntax & Structure
linux syntaxlinux
gunzip [-c|-t] [FILE...]Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| -c | option | stdout |
| -t | option | test |
| FILE | operand | compressed input |
Return Value
exit status and output
Decodes gzip data; -c retains the compressed input and writes stdout; -t checks integrity. Default decompression may replace the compressed file.
Working Example
Example Snippetlinux
gzip -c notes.txt > notes.gzgunzip -c notes.gz