Working with zip Archives

The common zip archive format (associated with the DOS and Windows programs PKZIP and WinZip among others) is supported on Linux. To unzip a zip archive, simply do the following:

[email protected]:~/temp> unzip

To create a zip archive of the current directory, do the following:

This will recursively zip up the current directory and create the zip file in your home directory (~).

The program zipinfo will give a listing and information about compression ratios:

[email protected]:~/temp> zipinfo

Archive: 7762 bytes 4 files

-rw-r--r-- 2.3 unx 2048 bx stor 21-Jun-04 20:06 afile

-rw-r--r-- 2.3 unx 4096 bx stor 21-Jun-04 20:07 bfile drwxr-xr-x 2.3 unx 0 bx stor 21-Jun-04 20:10 directory/

-rw-r--r-- 2.3 unx 2048 bx defN 21-Jun-04 20:10 directory/cfile

4 files, 8192 bytes uncompressed, 7230 bytes compressed: 11.7%

Was this article helpful?

0 0

Post a comment