Installing and Running
gzip/gunzip

Brian T. Luke, Ph.D.

[email protected]

To obtain gzip and gunzip for AIX 4.1 and 4.2, simply hold down the [Shift] key and click gzip Version 1.2.4a

To install the program you need root authority for this system. The simplest way to do this is to open a new window and enter the su command, followed by root's password. You then need to move the file you just downloaded, gzip.1.2.4a.tar.Z, to the base directory "/" and enter the following commands:


   uncompress gzip.1.2.4a.tar
   tar -xvf gzip.1.2.4a.tar

You should now exit as root by entering the exit command.

The following executables have now been placed in /usr/local/bin:


     gzip
     zdiff
     gunzip
     gzcat
     gzexe
     zcmp
     zforce
     zgrep
     zmore
     znew

In addition, man pages for these programs have been placed in /usr/local/man.

In order to run these programs or view the man pages, /usr/local/bin must be included in your PATH variable and /usr/local/man must be included in your MANPATH variable. Contact your system administrator if you need any help with this.

To use gzip to compress a file, simply input the command


     gzip file_name

The file file_name will be replaced with file_name.gz. Experience has shown that gzip compresses a file much more that the UNIX compress command.

To uncompress the file, use the command


     gunzip file_name

The program automatically appends the ".gz" suffix to the file_name.


Other Places to Visit