{"id":11350,"date":"2021-10-29T10:20:06","date_gmt":"2021-10-29T10:20:06","guid":{"rendered":"https:\/\/linuxways.net\/?p=11350"},"modified":"2021-10-29T10:20:06","modified_gmt":"2021-10-29T10:20:06","slug":"zip-a-folder-in-linux-mint-20-using-the-zip-utility","status":"publish","type":"post","link":"https:\/\/linuxways.net\/de\/mint\/zip-a-folder-in-linux-mint-20-using-the-zip-utility\/","title":{"rendered":"Zip a Folder in Linux Mint 20 Using the Zip Utility"},"content":{"rendered":"<h2>Introduction:<\/h2>\n<p>Whenever it comes to transferring files from one place to another via emails or any other suitable communication medium, we always think of compressing those files somehow so that they can be transported easily. One such way of doing it is by zipping the target file or folder. In this article, we will be using the Zip utility to zip a folder in Linux Mint 20.<\/p>\n<h2>Using the Zip Utility to Zip a Folder in Linux Mint 20:<\/h2>\n<p>For using the Zip utility to zip a folder in Linux Mint 20, you will have to perform the steps shown below:<\/p>\n<h3>Step # 1: Get your System Ready:<\/h3>\n<p>First, we will get our system ready with the following command:<\/p>\n<pre><strong>$ sudo apt update<\/strong><\/pre>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"369\" height=\"23\" class=\"wp-image-11351\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-418.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-418.png 369w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-418-300x19.png 300w\" sizes=\"auto, (max-width: 369px) 100vw, 369px\" \/><\/strong><\/p>\n<h3>Step # 2: Install the Zip Utility on your System:<\/h3>\n<p>Now, we will install the Zip utility on our system with the command shown below:<\/p>\n<pre><strong>$ sudo apt install zip<\/strong><\/pre>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"408\" height=\"26\" class=\"wp-image-11352\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-419.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-419.png 408w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-419-300x19.png 300w\" sizes=\"auto, (max-width: 408px) 100vw, 408px\" \/><\/strong><\/p>\n<h3>Step # 3: Confirm the Installation of the Zip Utility on your System:<\/h3>\n<p>We can confirm the installation of this utility by running the following command:<\/p>\n<pre><strong>$ zip --version<\/strong><\/pre>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"356\" height=\"28\" class=\"wp-image-11353\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-420.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-420.png 356w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-420-300x24.png 300w\" sizes=\"auto, (max-width: 356px) 100vw, 356px\" \/><\/strong><\/p>\n<p>The version of this utility is shown in the image below:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"615\" height=\"97\" class=\"wp-image-11354\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-421.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-421.png 615w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-421-300x47.png 300w\" sizes=\"auto, (max-width: 615px) 100vw, 615px\" \/><\/p>\n<h3>Step # 4: Zip a Folder using the Zip Utility on your System:<\/h3>\n<p>Now, we can zip any folder of our choice using this utility by executing the following command:<\/p>\n<pre><strong>$ zip \u2013r Sample.zip \/home\/kbuzdar\/snap<\/strong><\/pre>\n<p>In this command, \u201c-r\u201d is a flag which represents one of the many options that can be used with the \u201czip\u201d utility. \u201cSample.zip\u201d represents the name of the new zip folder to be created whereas \u201c\/home\/kbuzdar\/snap\u201d refers to the complete path of the folder that we wanted to zip.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"534\" height=\"29\" class=\"wp-image-11355\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-422.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-422.png 534w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-422-300x16.png 300w\" sizes=\"auto, (max-width: 534px) 100vw, 534px\" \/><\/p>\n<p>The confirmation messages shown in the image below will be displayed upon a successful execution of the above-mentioned command.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"619\" height=\"129\" class=\"wp-image-11356\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-423.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-423.png 619w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-423-300x63.png 300w\" sizes=\"auto, (max-width: 619px) 100vw, 619px\" \/><\/p>\n<h3>Step # 5: Confirm if the Selected Folder has been Zipped or not:<\/h3>\n<p>Finally, we can confirm if the selected folder has been zipped or not by going to the same path that we had provided for our target folder. You can see that a zip folder has been created with our provided name as shown in the following image:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"795\" height=\"533\" class=\"wp-image-11357\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-424.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-424.png 795w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-424-300x201.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-424-768x515.png 768w\" sizes=\"auto, (max-width: 795px) 100vw, 795px\" \/><\/p>\n<h2>Conclusion:<\/h2>\n<p>In this way, you can use the Zip utility to zip your folders of any specific size on Linux Mint 20, and hence those folders can be moved from one place to another very easily.<\/p>","protected":false},"excerpt":{"rendered":"<p>Introduction: Whenever it comes to transferring files from one place to another via emails or any other suitable communication medium, we always think of compressing those files somehow&hellip;<\/p>","protected":false},"author":1,"featured_media":11687,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[129,322],"class_list":["post-11350","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-mint","tag-linux-mint-20","tag-zip"],"_links":{"self":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/11350","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/comments?post=11350"}],"version-history":[{"count":0,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/11350\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media\/11687"}],"wp:attachment":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media?parent=11350"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/categories?post=11350"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/tags?post=11350"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}