Ubuntu Linux: Unzip a zip file using Terminal


To unzip a zip file in Ubuntu Linux Terminal, you will need to make sure you have the unzip binary installed.

# unzip -v

bash: unzip: command not found

If you get back "unzip command not found" then you do not have unzip installed (you can also try using which command).


Installing unzip package

Open the Terminal app and run the below command.

# sudo apt install unzip

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Suggested packages:
  zip
The following NEW packages will be installed:
  unzip
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 171 kB of archives.
After this operation, 360 kB of additional disk space will be used.
Get:1 http://ports.ubuntu.com/ubuntu-ports jammy-updates/main arm64 unzip arm64 6.0-26ubuntu3.1 [171 kB]
Fetched 171 kB in 1s (237 kB/s)
debconf: delaying package configuration, since apt-utils is not installed
Selecting previously unselected package unzip.
(Reading database ... 4457 files and directories currently installed.)
Preparing to unpack .../unzip_6.0-26ubuntu3.1_arm64.deb ...
Unpacking unzip (6.0-26ubuntu3.1) ...
Setting up unzip (6.0-26ubuntu3.1) ...
Install Unzip Package Ubuntu Linux Terminal

Now let's try the version command again,

# unzip -v

UnZip 6.00 of 20 April 2009, by Debian. Original by Info-ZIP.

Latest sources and executables are at ftp://ftp.info-zip.org/pub/infozip/ ;
see ftp://ftp.info-zip.org/pub/infozip/UnZip.html for other sites.

Compiled with gcc 11.2.0 for Unix (Linux ELF).

We are good to make use of this unzip a zip file using our Linux Terminal.


Unzipping a file










Copyright © Code2care 2024 | Privacy Policy | About Us | Contact Us | Sitemap