Compressing or decompressing a file

Perform the following tasks in user view:

Task

Command

Compress a file.

gzip filename

Decompress a file.

gunzip filename