When dealing with compressed files on an Ubuntu Server, it’s often necessary to unpack or extract these files to access the contents within.
The following guide walks you through the process of installing the Unzip utility on an Ubuntu Server, alongside examples demonstrating its usage.
Pre-Requisites
- An Ubuntu Server
- Access to the terminal
Installing Unzip Utility
- Open the terminal on your Ubuntu server.
- Update the package list to ensure the latest version of the repository listings is used:
sudo apt update
- Install Unzip with the following command:
sudo apt install unzip
Using Unzip Utility
- Unzipping a Single File:
unzip archive_name.zip
- Unzipping to a Specific Directory:
unzip archive_name.zip -d destination_directory
- Listing Contents of a Zip File without Unzipping:
unzip -l archive_name.zip
- Unzipping Multiple Files:
unzip '*.zip'