zip
1 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
2 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
3 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
4 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.
This document was last updated: