Documentation Reference Number: #0005


zip

I. How To Create A .zip File

Explanation

The example below demonstrates how to create a zip file, called archive.zip, which contains three text files (file_1.txt, file_2.txt, and file_3.txt).

Example 1.1

Creating a .zip file from three text files.
john@comp:~$ zip archive.zip file_1.txt file_2.txt file_3.txt

II. How To Extract The Contents Of A .zip File

Explanation

The example below demonstrates how to extract the contents of a zip file, in this case a zip file called 'archive.zip'.

Example 2.1

Extracting the contents of a .zip file
john@comp:~$ unzip archive.zip

III. How To List The Contents Of A .zip File

Explanation

The example below demonstrates how to list the contents of a .zip file without extracting the contents of said zip file.

Example 3.1

Listing the contents of a .zip file
john@comp:~$ unzip -l archive.zip

IV. Ancillary Information

The examples provided on this page were generated on 2024-JULY-28 using the Linux based operating system Debian 12.6, with zip installed via the apt-get package manager.

Documentation Last Updated: 2024-JULY-28 at 0003 PDT.