Create and Extract Zip Files to a Specific Directory. We know that,  tar command is used for create and extract tar files. In this blog we will explain you how to Create and Extract Zip Files to a Specific Directory .  Zip is a simple cross-platform file packaging and compression utility. It is  used in both linux and windows operating system. Zip utility is also used in many other operating system for compression purpose.

Create and Extract Zip Files to a Specific Directory :-

In this article, we will explain step-by-step how to create and extract a zip files in linux to a specific or different directory.

Create a Zip Archive File in Linux

To create a zip archive in linux, run a similar command in linux command line (CLI) as given below. This is used to create a compressed file with .zip extension. -r flag enables recursive reading of file directory structure.

 Extract a Zip Archive File in Linux

To extract a zip archive in linux, use a command unzip from command line interface. This command extract file in current working directory. Here i am going to extract amar.zip file with the help of unzip command.

To extract a zip archive in specific directory, use unzip with -d option. Now, we extract amar.zip in /root/unzip directory

For more information about zip and unzip use man page.

You may also like to read following article :

In this short article , we have explained how to create and extract zip files to a specific directory in linux. Please subscribe to newsletter for updated articles. We will discuss about many other compression utility in next articles. You can also read about zip at wikipedia.