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) ...

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
Syntax:
unzip zip-file-name.zip -d destination-directory
Example:
# ls -l
total 64
lrwxrwxrwx 1 root root 7 Jun 24 02:06 bin -> usr/bin
drwxr-xr-x 2 root root 4096 Apr 18 2022 boot
-rw-r--r-- 1 root root 652 Jul 16 08:36 data.zip
drwxr-xr-x 5 root root 360 Jul 16 08:25 dev
drwxr-xr-x 1 root root 4096 Jul 16 08:26 etc
drwxr-xr-x 2 root root 4096 Apr 18 2022 home
lrwxrwxrwx 1 root root 7 Jun 24 02:06 lib -> usr/lib
drwxr-xr-x 2 root root 4096 Jun 24 02:06 media
drwxr-xr-x 2 root root 4096 Jun 24 02:06 mnt
drwxr-xr-x 2 root root 4096 Jun 24 02:06 opt
dr-xr-xr-x 207 root root 0 Jul 16 08:25 proc
drwx------ 2 root root 4096 Jun 24 02:31 root
drwxr-xr-x 5 root root 4096 Jun 24 02:31 run
lrwxrwxrwx 1 root root 8 Jun 24 02:06 sbin -> usr/sbin
drwxr-xr-x 2 root root 4096 Jun 24 02:06 srv
dr-xr-xr-x 13 root root 0 Jul 16 08:25 sys
drwxrwxrwt 1 root root 4096 Jul 16 08:35 tmp
drwxr-xr-x 1 root root 4096 Jun 24 02:06 usr
drwxr-xr-x 1 root root 4096 Jun 24 02:31 var
root@52d2402a5689:/# unzip data.zip -d /home/
Archive: data.zip
creating: /home/data/
extracting: /home/data/data_2021.csv
extracting: /home/data/data_2022.csv
extracting: /home/data/data_2023.csv
In the below example, we unzipped the data.zip file under the /home directory, as you can see in the unzip logs, we extracted 3 files.

-
Facing issues? Have Questions? Post them here! I am happy to answer!
More Posts related to Ubuntu,
- Install Oh My Zsh on Ubuntu Docker complete steps
- Installing Home-brew on Ubuntu
- Install Golang (Go) on Ubuntu
- Install specific JRE on Ubuntu using apt
- How to stop/start/restart apache server using command [Ubuntu]
- How to install zsh shell on Ubuntu
- Quick steps to install Nginx on Ubuntu Linux
- How to know current Ubuntu Linux version via terminal command
- Add new user in Ubuntu Linux using Terminal Command
- Fix Ubuntu /bin/sh: 1: zsh: not found error
- How to install Python on Ubuntu
- [Fix] Ubuntu E: Unable to locate package sudo error
- How to stop MongoDB Server running on Ubuntu
- Install postgres Client using apt-get command
- How to kill service running on a port on Ubuntu Linux
- [fix] openssl No such file or directory error C++
- Fix - sudo: systemctl: command not found
- Access Windows share folder in Ubuntu Device in Network
- Add or remove users from sudo group - Ubuntu
- Quickly install Apache Server on Ubuntu Linux
- Fix: Ubuntu (Linux) - bash: sudo: command not found error
More Posts:
- SharePoint PowerShell PnP - How to get list item by Item ID using GetItemById, Get-PnPListItem - SharePoint
- How to open SharePoint Online Modern SPFX links in new tab - SharePoint
- How to remove disable google search blue triangle - Google
- [Fix] MySQL ERROR 1054 (42S22): Unknown Column - MySQL
- What Java version is used for Minecraft 1.18 - Java
- How to use a different Python version with virtualenv - Python
- Microsoft Teams: Delay in sending and receiving messages - TM495986 - Teams
- Notepad++ Ghost typing Examples - NotepadPlusPlus