{"id":1363,"date":"2019-01-15T23:09:30","date_gmt":"2019-01-15T23:09:30","guid":{"rendered":"https:\/\/draculaservers.com\/tutorials\/?p=1363"},"modified":"2021-11-14T20:34:39","modified_gmt":"2021-11-14T20:34:39","slug":"zip-unzip-linux","status":"publish","type":"post","link":"https:\/\/draculaservers.com\/tutorials\/zip-unzip-linux\/","title":{"rendered":"How to Zip and Unzip Files in Linux\/Unix"},"content":{"rendered":"<p>The <code>zip command<\/code> is used to compress files for ease and portability, on Linux\/Unix operating systems. There are various other ways to compress your files, but the <code>zip command<\/code> is among the most popular.<\/p>\n<p>In this tutorial we&#8217;ll explore the various ways you can <strong>zip<\/strong> files by using the <code>zip command<\/code>, and the <code>unzip command<\/code> to extract your compressed files. We&#8217;ll also see how to unzip archives zipped through different methods <code>.zip<\/code>, <code>.gz<\/code>, <code>.tar<\/code>, <code>.bz<\/code>, <code>.7z<\/code>, <code>.xz<\/code> , and <code>.rar<\/code>.<\/p>\n\n<h2 id=\"how-to-zip-files-in-linux\">How to Zip Files in Linux<\/h2>\n<p>The following are examples of typical uses of the <code>zip command<\/code>.<\/p>\n<p>If you&#8217;re on a fresh install of your operating system, if you don&#8217;t have it installed, you can install both the <code>zip<\/code> and <code>unzip<\/code> tools by running:<\/p>\n<p><strong>Ubuntu\/Debian<\/strong><\/p>\n<pre><code>$ sudo apt install zip unzip<\/code><\/pre>\n<p><strong>CentOS\/Fedora<\/strong><\/p>\n<pre><code>$ sudo yup install zip unzip<\/code><\/pre>\n<div class=\"container custom-content-block\" style=\"background-color: #282a36; border-radius: 3px; padding: 20px 25px 35px 25px !important; margin-top: 60px; margin-bottom: 60px;\">\r\n<div class=\"row\">\r\n<div class=\"col-lg-12\">\r\n<p style=\"color: #74fa7a; font-weight: bold !important; font-family: Droid Sans Mono,'DroidSansMonoRegular','Courier New',monospace !important;\">Get a High RAM VPS at Entry-level Pricing<\/p>\r\n\r\n<\/div>\r\n<div class=\"col-lg-12\">\r\n<p style=\"color: #ffffff; font-family: Droid Sans Mono,'DroidSansMonoRegular','Courier New',monospace !important;\">Starting with 2GB RAM at $6.99\/month<\/p>\r\n\r\n<\/div>\r\n<div class=\"col-lg-12\">\r\n<p style=\"color: #60709f; font-size: 1em; font-family: Droid Sans Mono,'DroidSansMonoRegular','Courier New',monospace !important;\">Take your pick from our KVM VPS that offer a generous amount of RAM at an affordable price. We've got 5 plans for you to choose from, our cheapest featuring 2GB RAM at $6.99\/mo.<\/p>\r\n\r\n<div style=\"font-family: Droid Sans Mono,'DroidSansMonoRegular','Courier New',monospace !important; font-size: 14px; color: #74fa7a;\"><span style=\"color: #ffffff;\">[Main Features]<\/span>\r\n- SSD Drives\r\n- KVM Virtualization\r\n- 1Gbps Shared Uplink\r\n- Location: Chicago, IL<\/div>\r\n<\/div>\r\n<div class=\"col-lg-12\">\r\n<p style=\"color: #ffffff; font-weight: bold !important; font-family: Droid Sans Mono,'DroidSansMonoRegular','Courier New',monospace !important;\">Pick one of our KVM plans<\/p>\r\n\r\n<\/div>\r\n<div class=\"col-lg-12\"><a class=\"btn btn-primary btn-lg\" style=\"background-color: #58689e; color: #ffffff; box-shadow: 0 2px 2px 0 #3F51B5, 0 3px 1px -2px #3F51B5, 0 1px 5px 0 #3F51B5; font-family: Droid Sans Mono,'DroidSansMonoRegular','Courier New',monospace !important; font-weight: bold !important;\" role=\"button\" href=\"https:\/\/draculaservers.com\/kvm.php#choose-plan\" target=\"_blank\" rel=\"noopener\" aria-pressed=\"true\">Get started now<\/a><\/div>\r\n<\/div>\r\n<\/div>\n<h3 id=\"1-zip-files-in-directory\">1 \u2013 Zip Files in Directory<\/h3>\n<p>This command creates a <code>.zip<\/code> archive of all the files in a directory. It does not create an archive recursively, however.<\/p>\n<pre><code>$ zip some_folder.zip some_folder\/*<\/code><\/pre>\n<p><strong>Example Output<\/strong><\/p>\n<pre><code>adding: some_folder\/a_file.conf (stored 0%)\nadding: some_folder\/Anaconda3-2018.12-Linux-x86_64.sh (deflated 0%)\nadding: some_folder\/GettyImages-845976972-5b1977813de42300372a76c8.jpg (deflated 6%)\nadding: some_folder\/google-chrome-stable_current_amd64.deb (deflated 0%)\nadding: some_folder\/mr_file (deflated 0%)\nadding: some_folder\/some_script.py (deflated 0%)\nadding: some_folder\/this_is_a_file.txt (deflated 0%)\nadding: some_folder\/this_is_another_file.txt (deflated 0%)<\/code><\/pre>\n<h3 id=\"2-zip-files-by-extension-using-wildcard\">2 \u2013 Zip Files by Extension using Wildcard<\/h3>\n<p>Using wildcards, we can zip files that files that have a specific extension. We&#8217;ll archive only our <code>.txt<\/code> files:<\/p>\n<pre><code>$ zip some_folder_txt.zip some_folder_txt\/*.txt<\/code><\/pre>\n<p><strong>Example Output<\/strong><\/p>\n<pre><code>adding: some_folder\/this_is_a_file.txt (deflated 0%)\nadding: some_folder\/this_is_another_file.txt (stored 0%)<\/code><\/pre>\n<h3 id=\"3-zip-files-recursively\">3 \u2013 Zip Files Recursively<\/h3>\n<p>Using the <code>zip command<\/code> with the <code>-r<\/code> flag, we can create an archive recursively, thereby compressing subdirectories as well.<\/p>\n<pre><code>$ zip -r some_folder.zip some_folder<\/code><\/pre>\n<h3 id=\"4-password-protect-zip-files\">4 \u2013 Password Protect Zip Files<\/h3>\n<p>If you need to protect your archives, you can password protect them using the <code>-P<\/code> flag:<\/p>\n<pre><code>$ zip -P some_folder.zip some_folder\/*<\/code><\/pre>\n<h3 id=\"5-adjust-zip-compression-levels\">5 \u2013 Adjust Zip Compression Levels<\/h3>\n<p>The <code>zip command<\/code> allows you to adjust the compression level from 0 to 9.<\/p>\n<p><code>-6<\/code> is the default compression level<\/p>\n<p><code>-0<\/code> is the lowest compression level<\/p>\n<p><code>-9<\/code> is the highest compression level<\/p>\n<pre><code>$ zip -9 some_folder.zip some_folder\/*\n$ zip -0 some_folder.zip some_folder\/*<\/code><\/pre>\n<h2 id=\"how-to-unzip-files-in-linux\">How to Unzip Files in Linux<\/h2>\n<h3 id=\"1-list-contents-of-a-zip-file\">1 \u2013 List Contents of a Zip File<\/h3>\n<p>We can use the <code>-l<\/code> flag to list the contents of a zip file, without extracting it.<\/p>\n<pre><code>unzip -l some_folder.zip<\/code><\/pre>\n<p><strong>Example Output<\/strong><\/p>\n<pre><code>  Length      Date    Time    Name\n---------  ---------- -----   ----\n        0  2019-01-15 14:00   some_folder\/a_file.conf\n112311072  2019-01-15 14:05   some_folder\/Anaconda3-2018.12-Linux-x86_64.sh\n     4588  2018-06-07 13:29   some_folder\/GettyImages-845976972-5b1977813de42300372a76c8.jpg\n 56611204  2018-12-11 20:39   some_folder\/google-chrome-stable_current_amd64.deb\n 20971520  2019-01-15 14:00   some_folder\/mr_file\n  5242880  2019-01-15 14:01   some_folder\/some_script.py\n 10485760  2019-01-15 14:01   some_folder\/this_is_a_file.txt\n---------                     -------\n205627024                     7 files<\/code><\/pre>\n<h3 id=\"2-extract-a-zip-file\">2 \u2013 Extract a Zip File<\/h3>\n<p>To unzip a <code>.zip<\/code> archive, we can simply use the <code>unzip command<\/code>:<\/p>\n<pre><code>$ unzip some_folder.zip<\/code><\/pre>\n<h3 id=\"3-test-the-integrity-of-a-zip-file\">3 \u2013 Test the Integrity of a Zip File<\/h3>\n<p>You may want to make sure your archive isn&#8217;t corrupted. For this, we can use the <code>-t<\/code> flag with the <code>unzip command<\/code>.<\/p>\n<p>This option extracts each specified file in memory and compares the CRC (cyclic redundancy check, an enhanced checksum) of the expanded file with the original&#8217;s stored CRC value.<\/p>\n<pre><code>$ unzip -t some_folder.zip<\/code><\/pre>\n<p><strong>Example Output<\/strong><\/p>\n<pre><code>Archive:  some_folder.zip\n    testing: some_folder\/a_file.conf   OK\n    testing: some_folder\/Anaconda3-2018.12-Linux-x86_64.sh   OK\n    testing: some_folder\/GettyImages-845976972-5b1977813de42300372a76c8.jpg   OK\n    testing: some_folder\/google-chrome-stable_current_amd64.deb   OK\n    testing: some_folder\/mr_file      OK\n    testing: some_folder\/some_script.py   OK\n    testing: some_folder\/this_is_a_file.txt   OK\nNo errors detected in compressed data of some_folder.zip.<\/code><\/pre>\n<h2 id=\"extract-different-compression-formats\">Extract Different Compression Formats<\/h2>\n<p>There are different compression methods and you&#8217;ll very often encounter different formats. You can use the following methods to extract the various formats.<\/p>\n<h3 id=\"how-to-extract-gz-file\">How to Extract .gz File<\/h3>\n<p><code>.gz<\/code> files are archives compressed using the <strong>Gzip utility<\/strong>. It&#8217;s generally considered better than <strong>Zip<\/strong>, especially when having to compress a huge number of file. To extract a <code>.gz<\/code> archive use the <code>gunzip command<\/code>:<\/p>\n<pre><code>$ gunzip some_folder.gz<\/code><\/pre>\n<h3 id=\"how-to-extract-tar-file\">How to Extract .tar File<\/h3>\n<p><code>.tar<\/code> is referred to as the <strong>tarball<\/strong> but it&#8217;s name is actually derived from (t)ape (ar)chive. This is another popular compression method. To extract a <code>.tar<\/code> archive, use the following command:<\/p>\n<pre><code>$ tar -xvf some_folder.tar<\/code><\/pre>\n<h3 id=\"how-to-extract-tar-gz-file\">How to Extract .tar.gz File<\/h3>\n<p>The <code>.tar.gz<\/code> is a format combining <strong>TAR<\/strong> and <strong>GZIP<\/strong>, thus providing more compression. You can extract it using the following command, using the <code>-Z<\/code> switch:<\/p>\n<pre><code>$ tar -xzf some_folder.tar.gz<\/code><\/pre>\n<h3 id=\"how-to-extract-tar-xz-file\">How to Extract .tar.xz File<\/h3>\n<p>The <code>tar.xz<\/code> format does not offer archiving capabilities. It only preserves the original data into one file. To extract <code>.tar.gz<\/code> we use the <code>-J<\/code> switch:<\/p>\n<pre><code>$ tar -xJf some_folder.tar.xz<\/code><\/pre>\n<h3 id=\"how-to-extract-tar-bz2-file\">How to Extract tar.bz2 File<\/h3>\n<p><code>tar.bz2<\/code> is a combination of the <strong>TAR<\/strong> and <strong>bzip2<\/strong> formats. To extract it, we use the <code>-j<\/code> switch:<\/p>\n<pre><code>$ tar -xjf some_folder.tar.bz2<\/code><\/pre>\n<h3 id=\"how-to-extract-7z-file\">How to Extract .7z File<\/h3>\n<p><code>7z<\/code> represents the <code>7zip<\/code> format. It&#8217;s typically not used on Linux, and to use it you&#8217;ll have to install <strong>7-zip File Archive<\/strong> on your machine. With it installed, to extract a <strong>7z<\/strong> archive, run the following command:<\/p>\n<pre><code>$ 7z x some_folder.7z<\/code><\/pre>\n<h3 id=\"how-to-extract-rar-file\">How to Extract .rar File<\/h3>\n<p><code>.rar<\/code> files are one of the most popular archive formats for Windows, created using WinRAR. It&#8217;s not very often used on Linux, however if you need to extract it, you can use the <strong>unrar utility<\/strong> or <strong>7-zip File Archiver<\/strong>, both of which you&#8217;ll have to install on your OS.<\/p>\n<p>To extract <code>.rar<\/code> archives on Linux, use the following comman<\/p>\n<pre><code>$ unrar x some_folder.rar<\/code><\/pre>\n<p><strong>OR<\/strong><\/p>\n<pre><code>$ 7z x some_folder.rar<\/code><\/pre>\n<h2 id=\"conclusion\">Conclusion<\/h2>\n<p>Well done. You&#8217;ve learned how to create ZIP archives through various methods, and to extract different archive formats. If you&#8217;ve found any issues with this tutorial, then please feel free to leave a comment or contact us, and we&#8217;ll get back to you as soon as possible.<\/p>\n<div class=\"container custom-content-block\" style=\"background-color: #282a36; border-radius: 3px; padding: 20px 25px 35px 25px !important; margin-top: 60px; margin-bottom: 60px;\">\r\n<div class=\"row\">\r\n<div class=\"col-lg-12\">\r\n<p style=\"color: #74fa7a; font-weight: bold !important; font-family: Droid Sans Mono,'DroidSansMonoRegular','Courier New',monospace !important;\">Get a High RAM VPS at Entry-level Pricing<\/p>\r\n\r\n<\/div>\r\n<div class=\"col-lg-12\">\r\n<p style=\"color: #ffffff; font-family: Droid Sans Mono,'DroidSansMonoRegular','Courier New',monospace !important;\">Starting with 2GB RAM at $6.99\/month<\/p>\r\n\r\n<\/div>\r\n<div class=\"col-lg-12\">\r\n<p style=\"color: #60709f; font-size: 1em; font-family: Droid Sans Mono,'DroidSansMonoRegular','Courier New',monospace !important;\">Take your pick from our KVM VPS that offer a generous amount of RAM at an affordable price. We've got 5 plans for you to choose from, our cheapest featuring 2GB RAM at $6.99\/mo.<\/p>\r\n\r\n<div style=\"font-family: Droid Sans Mono,'DroidSansMonoRegular','Courier New',monospace !important; font-size: 14px; color: #74fa7a;\"><span style=\"color: #ffffff;\">[Main Features]<\/span>\r\n- SSD Drives\r\n- KVM Virtualization\r\n- 1Gbps Shared Uplink\r\n- Location: Chicago, IL<\/div>\r\n<\/div>\r\n<div class=\"col-lg-12\">\r\n<p style=\"color: #ffffff; font-weight: bold !important; font-family: Droid Sans Mono,'DroidSansMonoRegular','Courier New',monospace !important;\">Pick one of our KVM plans<\/p>\r\n\r\n<\/div>\r\n<div class=\"col-lg-12\"><a class=\"btn btn-primary btn-lg\" style=\"background-color: #58689e; color: #ffffff; box-shadow: 0 2px 2px 0 #3F51B5, 0 3px 1px -2px #3F51B5, 0 1px 5px 0 #3F51B5; font-family: Droid Sans Mono,'DroidSansMonoRegular','Courier New',monospace !important; font-weight: bold !important;\" role=\"button\" href=\"https:\/\/draculaservers.com\/kvm.php#choose-plan\" target=\"_blank\" rel=\"noopener\" aria-pressed=\"true\">Get started now<\/a><\/div>\r\n<\/div>\r\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>The zip command is used to compress files for ease and portability, on Linux\/Unix operating systems. There are various other ways to compress your files, but the zip command is among the most popular. In this tutorial we&#8217;ll explore the various ways you can zip files by using the zip command, and the unzip command [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":2097,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,2],"tags":[79,82,59,81],"class_list":["post-1363","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-getting-started","category-linux-basics","tag-misc","tag-unzip","tag-utilities","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\/2019\/01\/How-to-Zip-and-Unzip-Files-in-LinuxUnix.png",1024,512,false],"thumbnail":["https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2019\/01\/How-to-Zip-and-Unzip-Files-in-LinuxUnix-150x150.png",150,150,true],"medium":["https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2019\/01\/How-to-Zip-and-Unzip-Files-in-LinuxUnix-300x150.png",300,150,true],"medium_large":["https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2019\/01\/How-to-Zip-and-Unzip-Files-in-LinuxUnix-768x384.png",768,384,true],"large":["https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2019\/01\/How-to-Zip-and-Unzip-Files-in-LinuxUnix.png",1024,512,false],"1536x1536":["https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2019\/01\/How-to-Zip-and-Unzip-Files-in-LinuxUnix.png",1024,512,false],"2048x2048":["https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2019\/01\/How-to-Zip-and-Unzip-Files-in-LinuxUnix.png",1024,512,false],"pk-small":["https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2019\/01\/How-to-Zip-and-Unzip-Files-in-LinuxUnix-80x80.png",80,80,true],"pk-thumbnail":["https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2019\/01\/How-to-Zip-and-Unzip-Files-in-LinuxUnix-300x225.png",300,225,true]},"post_excerpt_stackable_v2":"<p>The zip command is used to compress files for ease and portability, on Linux\/Unix operating systems. There are various other ways to compress your files, but the zip command is among the most popular. In this tutorial we&#8217;ll explore the various ways you can zip files by using the zip command, and the unzip command to extract your compressed files. We&#8217;ll also see how to unzip archives zipped through different methods .zip, .gz, .tar, .bz, .7z, .xz , and .rar. How to Zip Files in Linux The following are examples of typical uses of the zip command. If you&#8217;re on&hellip;<\/p>\n","category_list_v2":"<a href=\"https:\/\/draculaservers.com\/tutorials\/category\/getting-started\/\" rel=\"category tag\">Getting Started<\/a>, <a href=\"https:\/\/draculaservers.com\/tutorials\/category\/linux-basics\/\" rel=\"category tag\">Linux Basics<\/a>","author_info_v2":{"name":"Vlad","url":"https:\/\/draculaservers.com\/tutorials\/author\/vlad\/"},"comments_num_v2":"1 comment","yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Zip and Unzip Files in Linux\/Unix - Dracula Servers Tutorials<\/title>\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-unzip-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 Files in Linux\/Unix - Dracula Servers Tutorials\" \/>\n<meta property=\"og:description\" content=\"The zip command is used to compress files for ease and portability, on Linux\/Unix operating systems. There are various other ways to compress your files, but the zip command is among the most popular. In this tutorial we&#8217;ll explore the various ways you can zip files by using the zip command, and the unzip command [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/draculaservers.com\/tutorials\/zip-unzip-linux\/\" \/>\n<meta property=\"og:site_name\" content=\"Dracula Servers Tutorials\" \/>\n<meta property=\"article:published_time\" content=\"2019-01-15T23:09:30+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-11-14T20:34:39+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2019\/01\/How-to-Zip-and-Unzip-Files-in-LinuxUnix.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1024\" \/>\n\t<meta property=\"og:image:height\" content=\"512\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Vlad\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Vlad\" \/>\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-unzip-linux\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/zip-unzip-linux\\\/\"},\"author\":{\"name\":\"Vlad\",\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/#\\\/schema\\\/person\\\/931f7fa8b2126ace6edfb82775e0ec0e\"},\"headline\":\"How to Zip and Unzip Files in Linux\\\/Unix\",\"datePublished\":\"2019-01-15T23:09:30+00:00\",\"dateModified\":\"2021-11-14T20:34:39+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/zip-unzip-linux\\\/\"},\"wordCount\":683,\"commentCount\":1,\"publisher\":{\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/zip-unzip-linux\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2019\\\/01\\\/How-to-Zip-and-Unzip-Files-in-LinuxUnix.png\",\"keywords\":[\"Misc\",\"unzip\",\"Utilities\",\"zip\"],\"articleSection\":[\"Getting Started\",\"Linux Basics\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/zip-unzip-linux\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/zip-unzip-linux\\\/\",\"url\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/zip-unzip-linux\\\/\",\"name\":\"How to Zip and Unzip Files in Linux\\\/Unix - Dracula Servers Tutorials\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/zip-unzip-linux\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/zip-unzip-linux\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2019\\\/01\\\/How-to-Zip-and-Unzip-Files-in-LinuxUnix.png\",\"datePublished\":\"2019-01-15T23:09:30+00:00\",\"dateModified\":\"2021-11-14T20:34:39+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/zip-unzip-linux\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/zip-unzip-linux\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/zip-unzip-linux\\\/#primaryimage\",\"url\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2019\\\/01\\\/How-to-Zip-and-Unzip-Files-in-LinuxUnix.png\",\"contentUrl\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2019\\\/01\\\/How-to-Zip-and-Unzip-Files-in-LinuxUnix.png\",\"width\":1024,\"height\":512},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/zip-unzip-linux\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Zip and Unzip Files in Linux\\\/Unix\"}]},{\"@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\\\/931f7fa8b2126ace6edfb82775e0ec0e\",\"name\":\"Vlad\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/499c7a24aa9727703300a291f8f69dfd1b01b8d6a19a4ae4fbe669b4b12b8cbe?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/499c7a24aa9727703300a291f8f69dfd1b01b8d6a19a4ae4fbe669b4b12b8cbe?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/499c7a24aa9727703300a291f8f69dfd1b01b8d6a19a4ae4fbe669b4b12b8cbe?s=96&d=mm&r=g\",\"caption\":\"Vlad\"},\"description\":\"Tech Support\",\"sameAs\":[\"https:\\\/\\\/draculaservers.com\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Zip and Unzip Files in Linux\/Unix - Dracula Servers Tutorials","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-unzip-linux\/","og_locale":"en_US","og_type":"article","og_title":"How to Zip and Unzip Files in Linux\/Unix - Dracula Servers Tutorials","og_description":"The zip command is used to compress files for ease and portability, on Linux\/Unix operating systems. There are various other ways to compress your files, but the zip command is among the most popular. In this tutorial we&#8217;ll explore the various ways you can zip files by using the zip command, and the unzip command [&hellip;]","og_url":"https:\/\/draculaservers.com\/tutorials\/zip-unzip-linux\/","og_site_name":"Dracula Servers Tutorials","article_published_time":"2019-01-15T23:09:30+00:00","article_modified_time":"2021-11-14T20:34:39+00:00","og_image":[{"width":1024,"height":512,"url":"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2019\/01\/How-to-Zip-and-Unzip-Files-in-LinuxUnix.png","type":"image\/png"}],"author":"Vlad","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Vlad","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/draculaservers.com\/tutorials\/zip-unzip-linux\/#article","isPartOf":{"@id":"https:\/\/draculaservers.com\/tutorials\/zip-unzip-linux\/"},"author":{"name":"Vlad","@id":"https:\/\/draculaservers.com\/tutorials\/#\/schema\/person\/931f7fa8b2126ace6edfb82775e0ec0e"},"headline":"How to Zip and Unzip Files in Linux\/Unix","datePublished":"2019-01-15T23:09:30+00:00","dateModified":"2021-11-14T20:34:39+00:00","mainEntityOfPage":{"@id":"https:\/\/draculaservers.com\/tutorials\/zip-unzip-linux\/"},"wordCount":683,"commentCount":1,"publisher":{"@id":"https:\/\/draculaservers.com\/tutorials\/#organization"},"image":{"@id":"https:\/\/draculaservers.com\/tutorials\/zip-unzip-linux\/#primaryimage"},"thumbnailUrl":"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2019\/01\/How-to-Zip-and-Unzip-Files-in-LinuxUnix.png","keywords":["Misc","unzip","Utilities","zip"],"articleSection":["Getting Started","Linux Basics"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/draculaservers.com\/tutorials\/zip-unzip-linux\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/draculaservers.com\/tutorials\/zip-unzip-linux\/","url":"https:\/\/draculaservers.com\/tutorials\/zip-unzip-linux\/","name":"How to Zip and Unzip Files in Linux\/Unix - Dracula Servers Tutorials","isPartOf":{"@id":"https:\/\/draculaservers.com\/tutorials\/#website"},"primaryImageOfPage":{"@id":"https:\/\/draculaservers.com\/tutorials\/zip-unzip-linux\/#primaryimage"},"image":{"@id":"https:\/\/draculaservers.com\/tutorials\/zip-unzip-linux\/#primaryimage"},"thumbnailUrl":"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2019\/01\/How-to-Zip-and-Unzip-Files-in-LinuxUnix.png","datePublished":"2019-01-15T23:09:30+00:00","dateModified":"2021-11-14T20:34:39+00:00","breadcrumb":{"@id":"https:\/\/draculaservers.com\/tutorials\/zip-unzip-linux\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/draculaservers.com\/tutorials\/zip-unzip-linux\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/draculaservers.com\/tutorials\/zip-unzip-linux\/#primaryimage","url":"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2019\/01\/How-to-Zip-and-Unzip-Files-in-LinuxUnix.png","contentUrl":"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2019\/01\/How-to-Zip-and-Unzip-Files-in-LinuxUnix.png","width":1024,"height":512},{"@type":"BreadcrumbList","@id":"https:\/\/draculaservers.com\/tutorials\/zip-unzip-linux\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/draculaservers.com\/tutorials\/"},{"@type":"ListItem","position":2,"name":"How to Zip and Unzip Files in Linux\/Unix"}]},{"@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\/931f7fa8b2126ace6edfb82775e0ec0e","name":"Vlad","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/499c7a24aa9727703300a291f8f69dfd1b01b8d6a19a4ae4fbe669b4b12b8cbe?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/499c7a24aa9727703300a291f8f69dfd1b01b8d6a19a4ae4fbe669b4b12b8cbe?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/499c7a24aa9727703300a291f8f69dfd1b01b8d6a19a4ae4fbe669b4b12b8cbe?s=96&d=mm&r=g","caption":"Vlad"},"description":"Tech Support","sameAs":["https:\/\/draculaservers.com"]}]}},"_links":{"self":[{"href":"https:\/\/draculaservers.com\/tutorials\/wp-json\/wp\/v2\/posts\/1363","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\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/draculaservers.com\/tutorials\/wp-json\/wp\/v2\/comments?post=1363"}],"version-history":[{"count":2,"href":"https:\/\/draculaservers.com\/tutorials\/wp-json\/wp\/v2\/posts\/1363\/revisions"}],"predecessor-version":[{"id":2144,"href":"https:\/\/draculaservers.com\/tutorials\/wp-json\/wp\/v2\/posts\/1363\/revisions\/2144"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/draculaservers.com\/tutorials\/wp-json\/wp\/v2\/media\/2097"}],"wp:attachment":[{"href":"https:\/\/draculaservers.com\/tutorials\/wp-json\/wp\/v2\/media?parent=1363"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/draculaservers.com\/tutorials\/wp-json\/wp\/v2\/categories?post=1363"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/draculaservers.com\/tutorials\/wp-json\/wp\/v2\/tags?post=1363"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}