-
Step 1
Type ls -l in a Unix shell at the command prompt to identify the file or files you wish to compress
-
Step 2
Enter "gzip" and then a filename. The filename may include characters expanded by a shell such as ? or *. All selected files will be compressed individually.
-
Step 3
Key in ls -l to see the result. Compare the zipped file size to the original file and you will see the effect of Gzip.
-
Step 4
Use the -d option to uncompress Gzip files. To expand the file to its original size and filename use the command "gzip -d" followed by the filename.
-
Step 5
Type "zcat filename > newfile" to place a compressed file into a new file.











