Logo

How to install Zip or Unzip Files on Ubuntu 24.04

Mar 17, 2024

To install and use zip and unzip utilities on Ubuntu 24.04, follow these steps:

Step 1 : Begin by updating your package list to ensure you have the latest versions available.

sudo apt update

Step 2 : Install the zip utility to create zip archives.

sudo apt install zip

Step 3 : Install the unzip utility to extract files from zip archives.

sudo apt install unzip

Step 4 : For example, to create a zip archive named "archive_name.zip" containing all files and directories within "directory_to_compress/", you can use the following command:

zip -r archive_name.zip directory_to_compress/

Step 5 : To extract the contents of a zip archive named "archive_name.zip", use the following command:

unzip archive_name.zip

Step 6 : You can use additional parameters with unzip. For instance, to extract the contents of a zip archive into a specific directory, you can use the -d parameter followed by the directory path. For example:

unzip archive_name.zip -d /path/to/destination_directory

Congratulations! You have successfully installed and learned how to use the zip and unzip utilities on your Ubuntu 24.04 system.

Recommended