How To Extract Zip File In Linux

ZIP files are a popular archive format for compressing and packaging files and directories. They are used to save storage space, reduce the time to download or upload files, and for secure and easy file transfer. In this tutorial, we’ll discuss how to extract ZIP files on a Linux system using the command line.


Before we begin, ensure that you have the unzip utility installed on your Linux system. Most Linux distributions come with unzip pre-installed. If it’s not installed, you can install it using your distribution’s package manager.

Extracting ZIP Files

To extract a ZIP file in Linux, you need to use the unzip command, followed by the filename you want to extract.

Consider you have a ZIP file named You can extract it using the following command:


This command will extract all the files and directories in the file to the current directory.

Extracting to a Specific Directory

If you want to extract the ZIP file to a specific directory, you need to use the -d option followed by the directory path. For instance, to extract to a directory called /tmp, you would use:

  unzip -d /tmp

This command will extract all the contents of the file into the /tmp directory.


The unzip command in Linux is a straightforward and efficient way to handle ZIP files. Although there are many other methods and utilities for handling compressed files in Linux, the unzip command provides a quick and easy solution for extracting ZIP files.

Always remember to replace and /tmp with your actual file name and destination directory. Happy unzipping!