How to Unzip Files on Linux

Today's WikiHow will show you how to decompress a compressed folder on a Linux operating system using the command line in Terminal.

Unzip a folder

How to Unzip Files on Linux Picture 1How to Unzip Files on Linux Picture 1

Locate the compressed folder. If it's in the Documents category, open Documents.

How to Unzip Files on Linux Picture 2How to Unzip Files on Linux Picture 2

Note the name of the compressed folder. You will need to enter the exact name that the compressed folder displays.

Remember to note both spacing and capitalization.

How to Unzip Files on Linux Picture 3How to Unzip Files on Linux Picture 3

Click Menu located in the lower left corner of the screen.

How to Unzip Files on Linux Picture 4How to Unzip Files on Linux Picture 4

Click the Terminal icon. This icon looks like a black box with a white ">_" symbol. You will also see the Terminal application in the left sidebar of the Menu window and also in the group of programs displayed on the Menu window.

You can also find the Terminal app by clicking the search bar at the top of the Menu window and entering keywords terminal.

How to Unzip Files on Linux Picture 5How to Unzip Files on Linux Picture 5

Type unzip filename.zipinto the Terminal interface. Replace the "filename" part of the command with the name of your compressed folder.

For example, if the compressed folder is called "BaNaNa", you will have to type it unzip BaNaNa.zipinto Terminal.

How to Unzip Files on Linux Picture 6How to Unzip Files on Linux Picture 6

Press ↵ Enter. The command will begin executing and the folder you selected will be extracted.

Extract all compressed folders in the directory

How to Unzip Files on Linux Picture 7How to Unzip Files on Linux Picture 7

Navigate to the directory containing the compressed folder. To do this, you just need to open the large folder where your compressed folder is stored.

If you try to execute the "unzip" command on all folders in the current directory, you may accidentally unzip unnecessary folders.

How to Unzip Files on Linux Picture 8How to Unzip Files on Linux Picture 8

Type pwdin the Terminal window and press ↵ Enter. The "pwd" command will launch and indicate the name of the current directory.

This step is just to make sure you are in the right position before proceeding with the extraction.

How to Unzip Files on Linux Picture 9How to Unzip Files on Linux Picture 9

Type unzip "*.zip"into the Terminal screen. This command will search all folders with the ".zip" extension that are in the current directory.

Enclosing part *.zipof the command in quotes limits the type of file that will be extracted.

How to Unzip Files on Linux Picture 10How to Unzip Files on Linux Picture 10

Press ↵ Enter. The command will begin executing and the folders you selected will be unpacked. You will be able to view the contents of the compressed folders in the directory in which they are stored.

If this command doesn't work, enter the code unzip /*zipinto Terminal instead.

4 ★ | 1 Vote