

If user want to extract project.zip folder to path named project/bin/project1 then following command is useful. $Unzip Filename.zip -d Pathwheretoextract
#LINUX UNZIP FILE ZIP FILE#
d option is used to copy or extract the zip file to other location. Unix provides provision to unzip the zip folder to other directory. The above command will exclude the password.txt file and decompress all other files except that.Įxample 4 : Extracting. $Unzip Filename.zip -x “Filename.Fileextension” Lets say from Project.zip folder user need to exclude password.txt file following syntax is useful If user wants to exclude only specific file. The above command will decompress all other files with excluding all the. In this scenario following syntax is useful txt files from Project.zip folder while extracting.

x option of unzip command is used to exclude specific file or specific type of files. Lot of time there should be requirement like user need to exclude the specific file from the zip folder.The Linux provides facility to exclude a single file and unzip all other files. The above command is used to unzip each and every zip file in current folder or current directory.So make sure that you are in the directory where you need to unzip all the files.Įxample 3 : Decompress all the files excluding some of the files To unzip multiple zip files at a same time use following syntax. User can not decompress multiple zip files using above command.Īrchive : Project1.zip caution: Filename not match “Project2.zip” With using above command in unix user will get error. $Unzip “Project1.zip” “Project2.zip” “Project3.zip” You need to unzip or decompress all the files at a time. zip file which has 3 different segments like, project1.zip, project2.zip and project3.zip. There is no provision to decompress multiple zip folders at a same time. The above command is used to decompress the single file.Įxample 2 : Decompress Multiple Zip Folders If user want to unzip the files from zip file named need to use the command named Unzip. The Unzip command is used for decompressing the zip file.The above syntax will be used to unzip or decompress a single file.
#LINUX UNZIP FILE INSTALL#
These are above multiple ways to install unzip command in linux operating system.

Install Unzip Command on Ubuntu and Debian : Install Unzip Command on RedHat, Fedora or Centos : Unzip Command in unix syntax and examples :īefore discussing about the multiple examples of Unzip Command in unix ,let us first check the way to install Unzip command in Linux Operating system, I will explain the multiple ways to Unzip the zipped files using unix command prompt. So it is very important to study the Unzip command in unix with its different options which will be used widely for unzipping the zipped files in unix. But when it comes to unzipping files it is bit complex task as compared to zipping of the file in unix operating system. So Unzip Command in unix is most important command.Īs i explained you before that zipping of file is really very easy task. The Unzip Command in unix is very useful as well as frequently used command.The developers are well as support engineers need to Zip and unzip the files for proper memory utilization. In my previous articles i have given different commands of unix with real world industry examples.In this article i will try to explain you one of the useful command in unix – Unzip Command in unix.
