{"id":2381,"date":"2023-04-10T12:00:58","date_gmt":"2023-04-10T12:00:58","guid":{"rendered":"https:\/\/draculaservers.com\/tutorials\/?p=2381"},"modified":"2023-06-06T06:59:43","modified_gmt":"2023-06-06T06:59:43","slug":"zip-and-unzip-files-in-linux","status":"publish","type":"post","link":"https:\/\/draculaservers.com\/tutorials\/zip-and-unzip-files-in-linux\/","title":{"rendered":"How to Zip and Unzip a Directory \/ Files in Linux?"},"content":{"rendered":"<p>New to the Linux Operating System? Struggling to Zip and Unzip files and directories in Linux? Well, worry not. This guide will provide you with a step-by-step tutorial to compress and decompress files in Linux.<\/p>\n<p>To compress and decompress a file in Linux, you can use the \u201ctar\u201d and the \u201cZip\u201d package. However, this guide will focus mainly on the zip package. Therefore, let\u2019s start with the installation of the zip package.<\/p>\n<h2 id=\"install-zip-unzip-package-on-linux\">Install Zip\/Unzip Package on Linux<\/h2>\n<p>To install the zip and the unzip package on a <a href=\"https:\/\/ubuntu.com\/\" target=\"_blank\" rel=\"noopener\">Debian-based<\/a> operating system, start by upgrading your apt-packages list:<\/p>\n<pre>sudo apt-get update<\/pre>\n<p>After that, run the following command to upgrade all the packages as well:<\/p>\n<pre>sudo apt-get upgrade<\/pre>\n<p>Once the update is done, run the following commands for zip\/unzip packages:<\/p>\n<pre>sudo apt-get install zip\r\nsudo apt-get install unzip<\/pre>\n<p>However, in case you are using <a href=\"https:\/\/getfedora.org\/\" target=\"_blank\" rel=\"noopener\">FedoraOS<\/a> or <a href=\"https:\/\/www.centos.org\/\" target=\"_blank\" rel=\"noopener\">CentOS<\/a>, then you can use the following command to install the packages:<\/p>\n<pre>sudo yum install zip\r\nsudo yum install unzip<\/pre>\n<p>After the installation, you can start using the zip package for compressing and decompressing.<\/p>\n<h2 id=\"how-to-zip-and-unzip-a-file-directory-using-the-terminal\">How to Zip and Unzip a File\/Directory Using the Terminal?<\/h2>\n<p>You can use the terminal&#8217;s zip package or the GUI to zip any file or directory. We are going first to use the terminal and then use the GUI.<\/p>\n<h3 id=\"syntax\">Syntax<\/h3>\n<p>The syntax of the zip common to compress a file is as:<\/p>\n<pre>zip [optionParams] outFile file1 file2<\/pre>\n<p>In this syntax:<\/p>\n<ul>\n<li>The <strong>optionParams<\/strong> are different flags that can be used with the zip command\/package<\/li>\n<li>The <strong>outFile<\/strong> will represent the location and name of the zipped file<\/li>\n<li>The <strong>file1<\/strong> and <strong>file2<\/strong> are the files to be included in the zip<\/li>\n<\/ul>\n<h3 id=\"example-of-using-the-zip-package-from-terminal\">Example of Using the Zip Package From Terminal<\/h3>\n<p>To use the zip package, let\u2019s create a new text file that we will include in our compressed file by using the following command:<\/p>\n<pre>touch secret.txt<\/pre>\n<p>This will create a new text file in the present working directory. After that, let\u2019s create a zipped file in the same pwd using the following command:<\/p>\n<pre>zip compress1 secret.txt<\/pre>\n<p>Running this command will display the following output on the terminal:<\/p>\n<p><a href=\"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2023\/04\/1-2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2384\" src=\"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2023\/04\/1-2.png\" alt=\"Dracula Servers | How to Zip and Unzip a Directory \/ Files in Linux?\" width=\"581\" height=\"127\" srcset=\"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2023\/04\/1-2.png 581w, https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2023\/04\/1-2-300x66.png 300w\" sizes=\"auto, (max-width: 581px) 100vw, 581px\" \/><\/a><\/p>\n<p>This confirms that the zip file has been created. To verify this, simply run the \u201c<strong>ls<\/strong>\u201d command in the same pwd:<\/p>\n<p><a href=\"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2023\/04\/2-2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2385\" src=\"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2023\/04\/2-2.png\" alt=\"Dracula Servers | How to Zip and Unzip a Directory \/ Files in Linux?\" width=\"514\" height=\"159\" srcset=\"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2023\/04\/2-2.png 514w, https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2023\/04\/2-2-300x93.png 300w\" sizes=\"auto, (max-width: 514px) 100vw, 514px\" \/><\/a><\/p>\n<p>You can also verify it by heading over to the same directory using the GUI:<\/p>\n<p><a href=\"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2023\/04\/3-2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2386\" src=\"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2023\/04\/3-2.png\" alt=\"Dracula Servers | How to Zip and Unzip a Directory \/ Files in Linux?\" width=\"403\" height=\"433\" srcset=\"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2023\/04\/3-2.png 403w, https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2023\/04\/3-2-279x300.png 279w\" sizes=\"auto, (max-width: 403px) 100vw, 403px\" \/><\/a><\/p>\n<p>You have successfully compressed a file into a zip using the terminal.<\/p>\n<h3 id=\"unzip-using-the-terminal\">Unzip Using the Terminal<\/h3>\n<p>To unzip this file, you will use the unzip package. The syntax of the unzip command is as:<\/p>\n<pre>unzip [options] zippedFile.zip<\/pre>\n<p>In our example, if you want to extract the content of the \u201ccompress1.zip\u201d, you will run the following command:<\/p>\n<pre>unzip compress1.zip<\/pre>\n<p>This will give the following output on the terminal:<\/p>\n<p><a href=\"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2023\/04\/4-2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2387\" src=\"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2023\/04\/4-2.png\" alt=\"Dracula Servers | How to Zip and Unzip a Directory \/ Files in Linux?\" width=\"480\" height=\"143\" srcset=\"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2023\/04\/4-2.png 480w, https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2023\/04\/4-2-300x89.png 300w\" sizes=\"auto, (max-width: 480px) 100vw, 480px\" \/><\/a><\/p>\n<p>As you can see from the output, it has extracted the file secret.zip<\/p>\n<h2 id=\"dracula-vps-hosting-service\">Dracula VPS Hosting Service<\/h2>\n<p><a href=\"http:\/\/draculaservers.com\"><span style=\"font-weight: 400;\">Dracula Servers<\/span><\/a><span style=\"font-weight: 400;\"> offers high-performance server hosting at entry-level prices. The plans include Linux VPS, Sneaker Servers, Dedicated Servers &amp; turnkey solutions. If you&#8217;re looking for quality self-managed servers with high amounts of RAM and storage, look no further.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Check the plans for yourself by clicking <\/span><a href=\"https:\/\/draculaservers.com\/#pick-plan\" target=\"_blank\" rel=\"noopener\"><span style=\"font-weight: 400;\">Here<\/span><\/a><span style=\"font-weight: 400;\">!<\/span><\/p>\n<h2 id=\"how-to-zip-and-unzip-a-file-directory-using-the-gui\">How to Zip and Unzip a File\/Directory Using the GUI?<\/h2>\n<p>Using the GUI to compress and decompress files and directories is quite easy. Let\u2019s see how to do them both in Linux.<\/p>\n<h3 id=\"zip-a-file-directory-using-gui\">Zip a File\/Directory Using GUI<\/h3>\n<p>To demonstrate the working of the GUI zipping process, we have the following files inside our present working directory:<\/p>\n<p><a href=\"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2023\/04\/5-2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2388\" src=\"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2023\/04\/5-2.png\" alt=\"Dracula Servers | How to Zip and Unzip a Directory \/ Files in Linux?\" width=\"891\" height=\"236\" srcset=\"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2023\/04\/5-2.png 891w, https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2023\/04\/5-2-300x79.png 300w, https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2023\/04\/5-2-768x203.png 768w\" sizes=\"auto, (max-width: 891px) 100vw, 891px\" \/><\/a><\/p>\n<p>Simply select both of them and press right-click from the drop-down menu, select the \u201ccompress\u201d option:<\/p>\n<p><a href=\"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2023\/04\/6-2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2389\" src=\"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2023\/04\/6-2.png\" alt=\"Dracula Servers | How to Zip and Unzip a Directory \/ Files in Linux?\" width=\"900\" height=\"559\" srcset=\"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2023\/04\/6-2.png 900w, https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2023\/04\/6-2-300x186.png 300w, https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2023\/04\/6-2-768x477.png 768w\" sizes=\"auto, (max-width: 900px) 100vw, 900px\" \/><\/a><\/p>\n<p>Doing this will open up a dialogue box, in which you need to provide the name of the zipped file and select the extension\/format of the zipped file and click on the create button:<\/p>\n<p><a href=\"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2023\/04\/7-2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2390\" src=\"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2023\/04\/7-2.png\" alt=\"Dracula Servers | How to Zip and Unzip a Directory \/ Files in Linux?\" width=\"540\" height=\"286\" srcset=\"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2023\/04\/7-2.png 540w, https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2023\/04\/7-2-300x159.png 300w\" sizes=\"auto, (max-width: 540px) 100vw, 540px\" \/><\/a><\/p>\n<p>Doing this will create the zip file in the same directory, which can be seen in the \u201cfiles\u201d application as well:<\/p>\n<p><a href=\"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2023\/04\/8-2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2391\" src=\"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2023\/04\/8-2.png\" alt=\"Dracula Servers | How to Zip and Unzip a Directory \/ Files in Linux?\" width=\"889\" height=\"288\" srcset=\"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2023\/04\/8-2.png 889w, https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2023\/04\/8-2-300x97.png 300w, https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2023\/04\/8-2-768x249.png 768w\" sizes=\"auto, (max-width: 889px) 100vw, 889px\" \/><\/a><\/p>\n<h3 id=\"unzip-a-file-using-the-gui\">Unzip a File Using the GUI<\/h3>\n<p>To unzip a compressed file using, open up the zipped file using the \u201cArchive Manager\u201d:<\/p>\n<p><a href=\"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2023\/04\/9-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2392\" src=\"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2023\/04\/9-1.png\" alt=\"Dracula Servers | How to Zip and Unzip a Directory \/ Files in Linux?\" width=\"888\" height=\"550\" srcset=\"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2023\/04\/9-1.png 888w, https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2023\/04\/9-1-300x186.png 300w, https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2023\/04\/9-1-768x476.png 768w\" sizes=\"auto, (max-width: 888px) 100vw, 888px\" \/><\/a><\/p>\n<p>In the Archive Manager, click on the \u201cExtract\u201d button on the top left:<\/p>\n<p><a href=\"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2023\/04\/10-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2393\" src=\"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2023\/04\/10-1.png\" alt=\"Dracula Servers | How to Zip and Unzip a Directory \/ Files in Linux?\" width=\"1161\" height=\"557\" srcset=\"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2023\/04\/10-1.png 1161w, https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2023\/04\/10-1-300x144.png 300w, https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2023\/04\/10-1-1024x491.png 1024w, https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2023\/04\/10-1-768x368.png 768w\" sizes=\"auto, (max-width: 1161px) 100vw, 1161px\" \/><\/a><\/p>\n<p>Doing this will open up a new explorer, which will specify the directory for extraction, select the directory and click on the \u201cExtract\u201d button:<\/p>\n<p><a href=\"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2023\/04\/11-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2394\" src=\"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2023\/04\/11-1.png\" alt=\"Dracula Servers | How to Zip and Unzip a Directory \/ Files in Linux?\" width=\"1207\" height=\"194\" srcset=\"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2023\/04\/11-1.png 1207w, https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2023\/04\/11-1-300x48.png 300w, https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2023\/04\/11-1-1024x165.png 1024w, https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2023\/04\/11-1-768x123.png 768w\" sizes=\"auto, (max-width: 1207px) 100vw, 1207px\" \/><\/a><\/p>\n<p>As you can see, we are extracting the file on the Desktop. Once the extraction is complete, it will show the following prompt:<\/p>\n<p><a href=\"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2023\/04\/12-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2395\" src=\"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2023\/04\/12-1.png\" alt=\"Dracula Servers | How to Zip and Unzip a Directory \/ Files in Linux?\" width=\"604\" height=\"380\" srcset=\"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2023\/04\/12-1.png 604w, https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2023\/04\/12-1-300x189.png 300w\" sizes=\"auto, (max-width: 604px) 100vw, 604px\" \/><\/a><\/p>\n<p>Verify the files in the selected directory:<\/p>\n<p><a href=\"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2023\/04\/13-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-2396 size-full\" src=\"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2023\/04\/13-1-e1681128101517.png\" alt=\"Dracula Servers | How to Zip and Unzip a Directory \/ Files in Linux?\" width=\"383\" height=\"432\" srcset=\"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2023\/04\/13-1-e1681128101517.png 383w, https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2023\/04\/13-1-e1681128101517-266x300.png 266w\" sizes=\"auto, (max-width: 383px) 100vw, 383px\" \/><\/a><\/p>\n<p>As you can see that the files have been extracted onto the Desktop, which was our desired directory. That brings this post to an end. However, make sure to check out our other blogs <a href=\"https:\/\/draculaservers.com\/tutorials\/\" target=\"_blank\" rel=\"noopener\">Here!<\/a><\/p>\n<h2 id=\"conclusion\"><strong>Conclusion<\/strong><\/h2>\n<p>Compressing a file can have major benefits, such as storage, security, and integrity. However, to zip a file in a Linux operating system, you must first install the zip and unzip packages. Once that is done, follow the steps mentioned above to compress and decompress files and directories in Linux.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>New to the Linux Operating System? Struggling to Zip and Unzip files and directories in Linux? Well, worry not. This guide will provide you with a step-by-step tutorial to compress and decompress files in Linux. To compress and decompress a file in Linux, you can use the \u201ctar\u201d and the \u201cZip\u201d package. However, this guide [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":2383,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[112,113,102,82,81],"class_list":["post-2381","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux-basics","tag-compress","tag-extract-in-linux","tag-linux","tag-unzip","tag-zip"],"blocksy_meta":{"styles_descriptor":{"styles":{"desktop":"","tablet":"","mobile":""},"google_fonts":[],"version":6}},"featured_image_urls_v2":{"full":["https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2023\/04\/zip-unzip.png",1280,720,false],"thumbnail":["https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2023\/04\/zip-unzip-150x150.png",150,150,true],"medium":["https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2023\/04\/zip-unzip-300x169.png",300,169,true],"medium_large":["https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2023\/04\/zip-unzip-768x432.png",768,432,true],"large":["https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2023\/04\/zip-unzip-1024x576.png",1024,576,true],"1536x1536":["https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2023\/04\/zip-unzip.png",1280,720,false],"2048x2048":["https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2023\/04\/zip-unzip.png",1280,720,false],"pk-small":["https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2023\/04\/zip-unzip-80x80.png",80,80,true],"pk-thumbnail":["https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2023\/04\/zip-unzip-300x225.png",300,225,true]},"post_excerpt_stackable_v2":"<p>New to the Linux Operating System? Struggling to Zip and Unzip files and directories in Linux? Well, worry not. This guide will provide you with a step-by-step tutorial to compress and decompress files in Linux. To compress and decompress a file in Linux, you can use the \u201ctar\u201d and the \u201cZip\u201d package. However, this guide will focus mainly on the zip package. Therefore, let\u2019s start with the installation of the zip package. Install Zip\/Unzip Package on Linux To install the zip and the unzip package on a Debian-based operating system, start by upgrading your apt-packages list: sudo apt-get update After&hellip;<\/p>\n","category_list_v2":"<a href=\"https:\/\/draculaservers.com\/tutorials\/category\/linux-basics\/\" rel=\"category tag\">Linux Basics<\/a>","author_info_v2":{"name":"Abdul Mannan","url":"https:\/\/draculaservers.com\/tutorials\/author\/abdul-mannan-tbgmail-com\/"},"comments_num_v2":"0 comments","yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Zip and Unzip a Directory \/ Files in Linux? - Dracula Servers Tutorials<\/title>\n<meta name=\"description\" content=\"Install the zip\/unzip package in your Linux Distribution. After that, use the command mentioned in this guide for zipping and unzipping!\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/draculaservers.com\/tutorials\/zip-and-unzip-files-in-linux\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Zip and Unzip a Directory \/ Files in Linux? - Dracula Servers Tutorials\" \/>\n<meta property=\"og:description\" content=\"Install the zip\/unzip package in your Linux Distribution. After that, use the command mentioned in this guide for zipping and unzipping!\" \/>\n<meta property=\"og:url\" content=\"https:\/\/draculaservers.com\/tutorials\/zip-and-unzip-files-in-linux\/\" \/>\n<meta property=\"og:site_name\" content=\"Dracula Servers Tutorials\" \/>\n<meta property=\"article:published_time\" content=\"2023-04-10T12:00:58+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-06-06T06:59:43+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2023\/04\/zip-unzip.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1280\" \/>\n\t<meta property=\"og:image:height\" content=\"720\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Abdul Mannan\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Abdul Mannan\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/zip-and-unzip-files-in-linux\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/zip-and-unzip-files-in-linux\\\/\"},\"author\":{\"name\":\"Abdul Mannan\",\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/#\\\/schema\\\/person\\\/ac89d0281f4fb596bfaa0bc1e746c8a6\"},\"headline\":\"How to Zip and Unzip a Directory \\\/ Files in Linux?\",\"datePublished\":\"2023-04-10T12:00:58+00:00\",\"dateModified\":\"2023-06-06T06:59:43+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/zip-and-unzip-files-in-linux\\\/\"},\"wordCount\":803,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/zip-and-unzip-files-in-linux\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2023\\\/04\\\/zip-unzip.png\",\"keywords\":[\"Compress\",\"Extract in Linux\",\"linux\",\"unzip\",\"zip\"],\"articleSection\":[\"Linux Basics\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/zip-and-unzip-files-in-linux\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/zip-and-unzip-files-in-linux\\\/\",\"url\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/zip-and-unzip-files-in-linux\\\/\",\"name\":\"How to Zip and Unzip a Directory \\\/ Files in Linux? - Dracula Servers Tutorials\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/zip-and-unzip-files-in-linux\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/zip-and-unzip-files-in-linux\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2023\\\/04\\\/zip-unzip.png\",\"datePublished\":\"2023-04-10T12:00:58+00:00\",\"dateModified\":\"2023-06-06T06:59:43+00:00\",\"description\":\"Install the zip\\\/unzip package in your Linux Distribution. After that, use the command mentioned in this guide for zipping and unzipping!\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/zip-and-unzip-files-in-linux\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/zip-and-unzip-files-in-linux\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/zip-and-unzip-files-in-linux\\\/#primaryimage\",\"url\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2023\\\/04\\\/zip-unzip.png\",\"contentUrl\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2023\\\/04\\\/zip-unzip.png\",\"width\":1280,\"height\":720,\"caption\":\"Dracula Servers | How to Zip and Unzip a Directory \\\/ Files in Linux?\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/zip-and-unzip-files-in-linux\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Zip and Unzip a Directory \\\/ Files in Linux?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/#website\",\"url\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/\",\"name\":\"Dracula Servers Tutorials\",\"description\":\"Dedicated Servers\",\"publisher\":{\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/#organization\",\"name\":\"Dracula Servers\",\"url\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2016\\\/06\\\/dracula_full_logo_smaller.png\",\"contentUrl\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2016\\\/06\\\/dracula_full_logo_smaller.png\",\"width\":1625,\"height\":200,\"caption\":\"Dracula Servers\"},\"image\":{\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/#\\\/schema\\\/person\\\/ac89d0281f4fb596bfaa0bc1e746c8a6\",\"name\":\"Abdul Mannan\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/2809442d44177cab4f90e1d9b3295560462063881ca1374b6d597d8f0b48fc21?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/2809442d44177cab4f90e1d9b3295560462063881ca1374b6d597d8f0b48fc21?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/2809442d44177cab4f90e1d9b3295560462063881ca1374b6d597d8f0b48fc21?s=96&d=mm&r=g\",\"caption\":\"Abdul Mannan\"},\"description\":\"An individual trying to decipher the enigmas of technology by the sheer driving force of curiosity. Interested in learning new skills and being better at those skills than the lot.\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Zip and Unzip a Directory \/ Files in Linux? - Dracula Servers Tutorials","description":"Install the zip\/unzip package in your Linux Distribution. After that, use the command mentioned in this guide for zipping and unzipping!","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/draculaservers.com\/tutorials\/zip-and-unzip-files-in-linux\/","og_locale":"en_US","og_type":"article","og_title":"How to Zip and Unzip a Directory \/ Files in Linux? - Dracula Servers Tutorials","og_description":"Install the zip\/unzip package in your Linux Distribution. After that, use the command mentioned in this guide for zipping and unzipping!","og_url":"https:\/\/draculaservers.com\/tutorials\/zip-and-unzip-files-in-linux\/","og_site_name":"Dracula Servers Tutorials","article_published_time":"2023-04-10T12:00:58+00:00","article_modified_time":"2023-06-06T06:59:43+00:00","og_image":[{"width":1280,"height":720,"url":"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2023\/04\/zip-unzip.png","type":"image\/png"}],"author":"Abdul Mannan","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Abdul Mannan","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/draculaservers.com\/tutorials\/zip-and-unzip-files-in-linux\/#article","isPartOf":{"@id":"https:\/\/draculaservers.com\/tutorials\/zip-and-unzip-files-in-linux\/"},"author":{"name":"Abdul Mannan","@id":"https:\/\/draculaservers.com\/tutorials\/#\/schema\/person\/ac89d0281f4fb596bfaa0bc1e746c8a6"},"headline":"How to Zip and Unzip a Directory \/ Files in Linux?","datePublished":"2023-04-10T12:00:58+00:00","dateModified":"2023-06-06T06:59:43+00:00","mainEntityOfPage":{"@id":"https:\/\/draculaservers.com\/tutorials\/zip-and-unzip-files-in-linux\/"},"wordCount":803,"commentCount":0,"publisher":{"@id":"https:\/\/draculaservers.com\/tutorials\/#organization"},"image":{"@id":"https:\/\/draculaservers.com\/tutorials\/zip-and-unzip-files-in-linux\/#primaryimage"},"thumbnailUrl":"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2023\/04\/zip-unzip.png","keywords":["Compress","Extract in Linux","linux","unzip","zip"],"articleSection":["Linux Basics"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/draculaservers.com\/tutorials\/zip-and-unzip-files-in-linux\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/draculaservers.com\/tutorials\/zip-and-unzip-files-in-linux\/","url":"https:\/\/draculaservers.com\/tutorials\/zip-and-unzip-files-in-linux\/","name":"How to Zip and Unzip a Directory \/ Files in Linux? - Dracula Servers Tutorials","isPartOf":{"@id":"https:\/\/draculaservers.com\/tutorials\/#website"},"primaryImageOfPage":{"@id":"https:\/\/draculaservers.com\/tutorials\/zip-and-unzip-files-in-linux\/#primaryimage"},"image":{"@id":"https:\/\/draculaservers.com\/tutorials\/zip-and-unzip-files-in-linux\/#primaryimage"},"thumbnailUrl":"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2023\/04\/zip-unzip.png","datePublished":"2023-04-10T12:00:58+00:00","dateModified":"2023-06-06T06:59:43+00:00","description":"Install the zip\/unzip package in your Linux Distribution. After that, use the command mentioned in this guide for zipping and unzipping!","breadcrumb":{"@id":"https:\/\/draculaservers.com\/tutorials\/zip-and-unzip-files-in-linux\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/draculaservers.com\/tutorials\/zip-and-unzip-files-in-linux\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/draculaservers.com\/tutorials\/zip-and-unzip-files-in-linux\/#primaryimage","url":"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2023\/04\/zip-unzip.png","contentUrl":"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2023\/04\/zip-unzip.png","width":1280,"height":720,"caption":"Dracula Servers | How to Zip and Unzip a Directory \/ Files in Linux?"},{"@type":"BreadcrumbList","@id":"https:\/\/draculaservers.com\/tutorials\/zip-and-unzip-files-in-linux\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/draculaservers.com\/tutorials\/"},{"@type":"ListItem","position":2,"name":"How to Zip and Unzip a Directory \/ Files in Linux?"}]},{"@type":"WebSite","@id":"https:\/\/draculaservers.com\/tutorials\/#website","url":"https:\/\/draculaservers.com\/tutorials\/","name":"Dracula Servers Tutorials","description":"Dedicated Servers","publisher":{"@id":"https:\/\/draculaservers.com\/tutorials\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/draculaservers.com\/tutorials\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/draculaservers.com\/tutorials\/#organization","name":"Dracula Servers","url":"https:\/\/draculaservers.com\/tutorials\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/draculaservers.com\/tutorials\/#\/schema\/logo\/image\/","url":"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2016\/06\/dracula_full_logo_smaller.png","contentUrl":"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2016\/06\/dracula_full_logo_smaller.png","width":1625,"height":200,"caption":"Dracula Servers"},"image":{"@id":"https:\/\/draculaservers.com\/tutorials\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/draculaservers.com\/tutorials\/#\/schema\/person\/ac89d0281f4fb596bfaa0bc1e746c8a6","name":"Abdul Mannan","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/2809442d44177cab4f90e1d9b3295560462063881ca1374b6d597d8f0b48fc21?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/2809442d44177cab4f90e1d9b3295560462063881ca1374b6d597d8f0b48fc21?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/2809442d44177cab4f90e1d9b3295560462063881ca1374b6d597d8f0b48fc21?s=96&d=mm&r=g","caption":"Abdul Mannan"},"description":"An individual trying to decipher the enigmas of technology by the sheer driving force of curiosity. Interested in learning new skills and being better at those skills than the lot."}]}},"_links":{"self":[{"href":"https:\/\/draculaservers.com\/tutorials\/wp-json\/wp\/v2\/posts\/2381","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/draculaservers.com\/tutorials\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/draculaservers.com\/tutorials\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/draculaservers.com\/tutorials\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/draculaservers.com\/tutorials\/wp-json\/wp\/v2\/comments?post=2381"}],"version-history":[{"count":5,"href":"https:\/\/draculaservers.com\/tutorials\/wp-json\/wp\/v2\/posts\/2381\/revisions"}],"predecessor-version":[{"id":2534,"href":"https:\/\/draculaservers.com\/tutorials\/wp-json\/wp\/v2\/posts\/2381\/revisions\/2534"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/draculaservers.com\/tutorials\/wp-json\/wp\/v2\/media\/2383"}],"wp:attachment":[{"href":"https:\/\/draculaservers.com\/tutorials\/wp-json\/wp\/v2\/media?parent=2381"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/draculaservers.com\/tutorials\/wp-json\/wp\/v2\/categories?post=2381"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/draculaservers.com\/tutorials\/wp-json\/wp\/v2\/tags?post=2381"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}