{"id":4218,"date":"2023-03-11T12:23:12","date_gmt":"2023-03-11T12:23:12","guid":{"rendered":"https:\/\/www.webhi.com\/how-to\/?p=4218"},"modified":"2024-10-15T13:58:09","modified_gmt":"2024-10-15T13:58:09","slug":"setp-by-step-guide-to-using-zip-and-unzip-command-in-linux","status":"publish","type":"post","link":"https:\/\/www.webhi.com\/how-to\/setp-by-step-guide-to-using-zip-and-unzip-command-in-linux\/","title":{"rendered":"Guide to using Zip and Unzip commands in Linux"},"content":{"rendered":"\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1200\" height=\"675\" src=\"https:\/\/www.webhi.com\/how-to\/gilrogre\/2023\/03\/zip_unzip_en.jpg\" alt=\"Step-by-Step Guide Zip Unzip Linux ubuntu debian fedora centos redhat\" class=\"wp-image-4229\" srcset=\"https:\/\/www.webhi.com\/how-to\/gilrogre\/2023\/03\/zip_unzip_en.jpg 1200w, https:\/\/www.webhi.com\/how-to\/gilrogre\/2023\/03\/zip_unzip_en-300x169.jpg 300w, https:\/\/www.webhi.com\/how-to\/gilrogre\/2023\/03\/zip_unzip_en-1024x576.jpg 1024w, https:\/\/www.webhi.com\/how-to\/gilrogre\/2023\/03\/zip_unzip_en-768x432.jpg 768w, https:\/\/www.webhi.com\/how-to\/gilrogre\/2023\/03\/zip_unzip_en-150x84.jpg 150w\" sizes=\"(max-width: 1200px) 100vw, 1200px\" \/><\/figure>\n\n\n\n<p>Zip and unzip functions make file transfer tasks much simpler. This tutorial will show you how to use Linux commands to unzip files and improve your VPS workflow.<\/p>\n\n\n\n<p>Zip is a commonly used compression function that is portable and user-friendly. You can even unzip files in Windows that were created in Linux.<\/p>\n\n\n\n<p>Unzip is not included by default in most Linux flavors, but it can be easily installed. By creating&nbsp;<strong>.zip<\/strong>&nbsp;files, you can achieve the same level of compression as&nbsp;<strong>.tar.gz<\/strong>&nbsp;files.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"what-are-zip-files-used-for\">What Are Zip Files Used For?<\/h2>\n\n\n\n<p>Here are some common scenarios in which you might use zip files:<\/p>\n\n\n\n<ul>\n<li>Working frequently between Windows and Unix-based systems: Zip files not only compress files but also act as file packaging utilities, making them compatible with multiple operating systems.<\/li>\n\n\n\n<li>Saving bandwidth: If you have limited or restricted bandwidth, you can use zip files to transfer files between two servers.<\/li>\n\n\n\n<li>Reducing transfer time: The zip utility reduces file size, making file transfers faster.<\/li>\n\n\n\n<li>Uploading or downloading directories more quickly.<\/li>\n\n\n\n<li>Saving disk space.<\/li>\n\n\n\n<li>Unzipping password-protected&nbsp;<strong>.zip<\/strong>&nbsp;files.<\/li>\n\n\n\n<li>Enjoying a good compression ratio.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"installing-unzip-on-debian-and-ubuntu-systems\">Installing Unzip on Debian and Ubuntu Systems<\/h2>\n\n\n\n<p>Installing unzip is simple. If you&#8217;re using Ubuntu or Debian, use the following command to install unzip:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ sudo apt install unzip<\/code><\/pre>\n\n\n\n<p>Once you&#8217;ve initiated an installation, wait for a minute until it&#8217;s finished.<\/p>\n\n\n\n<p>To create zip files, you&#8217;ll need to install zip. Use the following command to do so:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ sudo apt-get install zip<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"installing-unzip-on-linux-centos-and-fedora\">Installing Unzip on Linux CentOS and Fedora<\/h2>\n\n\n\n<p>Installing unzip on Linux CentOS and Fedora is similarly straightforward. Use the following command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ sudo yum install unzip<\/code><\/pre>\n\n\n\n<p>After the installation is complete, you can confirm the path with the following command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ which unzip<\/code><\/pre>\n\n\n\n<p>Once you&#8217;ve executed the command in the terminal, you should see output similar to this:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ \/usr\/bin\/unzip<\/code><\/pre>\n\n\n\n<p>You can also check that the installation was successful by using the following command, which displays verbose information about the unzip utility:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ unzip -v<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"using-zip-and-unzip-in-linux\">Using Zip and Unzip in Linux<\/h2>\n\n\n\n<p>Now that we&#8217;ve learned how to install the utility, let&#8217;s explore some of its basic uses:<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"create-zip-files-in-linux\">Create Zip Files in Linux<\/h3>\n\n\n\n<p>The basic syntax for creating a&nbsp;<strong>.zip<\/strong>&nbsp;file is:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ zip options zipfile list_Of_files<\/code><\/pre>\n\n\n\n<p>To demonstrate this, we&#8217;ll create two files &#8211; File1.txt and File2.txt &#8211; and compress them into a file named ZipFile.zip using the following command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ zip ZipFile.zip File1.txt File2.txt<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"unzipping-files-in-linux\">Unzipping Files in Linux<\/h3>\n\n\n\n<p>The unzip command can be used without any options to extract all files to the current directory. For example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ unzip ZipFile.zip<\/code><\/pre>\n\n\n\n<p>This command will extract the contents of ZipFile.zip to the current directory, provided that you have read-write access to the directory.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"remove-a-file-from-a-zip-file\">Remove a File from a .zip File<\/h3>\n\n\n\n<p>Once a&nbsp;<strong>.zip<\/strong>&nbsp;file is created, you can remove files from it. If you want to remove&nbsp;<strong>File1.txt<\/strong>&nbsp;from the existing&nbsp;<strong>ZipFile.zip<\/strong>, use the following command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ zip \u2013d ZipFile.zip File1.txt<\/code><\/pre>\n\n\n\n<p>After running this command, you can extract the modified&nbsp;<strong>.zip<\/strong>&nbsp;file with:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ unzip ZipFile.zip<\/code><\/pre>\n\n\n\n<p>You&#8217;ll notice that File1.txt is no longer included in the extracted files.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"using-zip-in-linux-to-update-and-move-files\">Using Zip in Linux to Update and Move Files<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"updating-a-zip-file\">Updating a Zip File<\/h4>\n\n\n\n<p>After creating a&nbsp;<strong>.zip<\/strong>&nbsp;file, you can add new files to it or move specific files to it using the following commands:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ zip \u2013u ZipFile.zip File2.txt<\/code><\/pre>\n\n\n\n<p>Once executed, you can extract&nbsp;<strong>ZipFile.zip<\/strong>&nbsp;to find the newly added file.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"moving-files-to-a-zip-file\">Moving Files to a Zip File<\/h4>\n\n\n\n<p>To move specific files to a .zip file and delete them from their original directories, use the -m option in the command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ zip \u2013m ZipFile.zip File2.txt<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"recursive-use-of-zip-on-linux\">Recursive Use of Zip on Linux<\/h4>\n\n\n\n<p>The -r option allows you to recursively zip files within a directory, including sub-directories. For example, to compress all files in the directory MyDirectory, use the command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ zip \u2013r ZipFile.zip MyDirectory<\/code><\/pre>\n\n\n\n<p>In the example, MyDirectory is a directory which has multiple files and sub-directories to be zipped.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"excluding-files-and-directories-in-zip-files\">Excluding Files and Directories in Zip Files<\/h3>\n\n\n\n<p>To exclude multiple files or directories while creating a .zip file, you can use the -x option followed by the list of files or directories you want to exclude. For example, to exclude&nbsp;<strong>File1.txt<\/strong>&nbsp;and&nbsp;<strong>Directory1<\/strong>&nbsp;from the&nbsp;<strong>ZipFile.zip<\/strong>, you can use the following command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ zip -x File1.txt Directory1 -r ZipFile.zip .<\/code><\/pre>\n\n\n\n<p>Here, the&nbsp;<strong>-r<\/strong>&nbsp;option is used to recursively include all the files and directories in the current directory (.).<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"unzipping-files-to-a-specific-directory\">Unzipping Files to a Specific Directory<\/h3>\n\n\n\n<p>If you want to extract the contents of a&nbsp;<strong>.zip<\/strong>&nbsp;file to a specific directory, you can use the&nbsp;<strong>-d<\/strong>&nbsp;option followed by the path of the destination directory. For example, to extract the contents of&nbsp;<strong>ZipFile.zip<\/strong>&nbsp;to the directory&nbsp;<strong>\/home\/user\/extracted<\/strong>, you can use the following command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ unzip ZipFile.zip -d \/home\/user\/extracted<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"extracting-multiple-zip-files\">Extracting Multiple Zip Files<\/h3>\n\n\n\n<p>To extract multiple&nbsp;<strong>.zip<\/strong>&nbsp;files in the current directory, you can use the following command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ unzip '*.zip'<\/code><\/pre>\n\n\n\n<p>This command will extract all the individual&nbsp;<strong>.zip<\/strong>&nbsp;files in the current directory.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"suppressing-output-when-using-unzip-in-linux\">Suppressing Output When Using Unzip in Linux<\/h3>\n\n\n\n<p>To suppress the output messages when using the unzip command, you can use the&nbsp;<strong>-q<\/strong>&nbsp;option. For example, to extract&nbsp;<strong>ZipFile.zip<\/strong>&nbsp;without displaying any output messages, you can use the following command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ unzip -q ZipFile.zip<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"excluding-files-with-unzip-in-linux\">Excluding Files with Unzip in Linux<\/h3>\n\n\n\n<p>To exclude specific files when extracting from a&nbsp;<strong>.zip<\/strong>&nbsp;file, you can use the&nbsp;<strong>-x<\/strong>&nbsp;option followed by the file name or pattern to exclude. For example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ unzip ZipFile.zip -x excludedFile.txt<\/code><\/pre>\n\n\n\n<p>This will extract all files from&nbsp;<strong>ZipFile.zip<\/strong>&nbsp;except for&nbsp;<strong>excludedFile.txt<\/strong>.<\/p>\n\n\n\n<p>You can also exclude files based on their file type. For example, to exclude all .png files from being extracted, you can use the following command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ unzip ZipFile.zip -x \"*.png\"<\/code><\/pre>\n\n\n\n<p>The above command will exclude all&nbsp;<strong>.png<\/strong>&nbsp;files from being extracted.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"extracting-password-protected-zip-files-in-linux\">Extracting Password Protected Zip Files in Linux<\/h3>\n\n\n\n<p>If you need to extract a password-protected&nbsp;<strong>.zip<\/strong>&nbsp;file, you can use the&nbsp;<strong>-P<\/strong>&nbsp;option followed by the password. For example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ unzip -P Password ZipFile.zip<\/code><\/pre>\n\n\n\n<p>Here,&nbsp;<strong>Password<\/strong>&nbsp;should be replaced with the actual password for the&nbsp;<strong>.zip<\/strong>&nbsp;file.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"overwriting-zip-files-in-linux\">Overwriting Zip Files in Linux<\/h3>\n\n\n\n<p>When extracting a&nbsp;<strong>.zip<\/strong>&nbsp;file that already exists in the same location, you will be prompted to choose whether to overwrite the file, skip extraction, or rename the file. For example:<\/p>\n\n\n\n<p>The options would be as shown below:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">[y]es, [n]o, [A]ll, [N]one, [r]ename<\/code><\/pre>\n\n\n\n<p>To override these options and overwrite all files without prompting, you can use the&nbsp;<strong>-o<\/strong>&nbsp;option.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ unzip -o ZipFile.zip<\/code><\/pre>\n\n\n\n<p>Use caution when using this option, as it will completely overwrite existing copies of the files without prompting for confirmation.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"avoiding-overwriting-files-with-unzip-in-linux\">Avoiding Overwriting Files with Unzip in Linux<\/h3>\n\n\n\n<p>If you want to extract files without overwriting any existing files, you can use the&nbsp;<strong>-n<\/strong>&nbsp;option. This will only extract files that do not already exist in the destination directory. For example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ unzip -n ZipFile.zip<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"listing-contents-of-a-zip-in-linux\">Listing Contents of a Zip in Linux<\/h3>\n\n\n\n<p>To list the contents of a&nbsp;<strong>.zip<\/strong>&nbsp;file in Linux, you can use the&nbsp;<strong>-l<\/strong>&nbsp;option. This will display a detailed list of all files in the archive, including their timestamps and other details. For example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ unzip -l ZipFile.zip<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"conclusion\">Conclusion<\/h2>\n\n\n\n<p>That&#8217;s it! You now know the essential functions of the&nbsp;<strong>zip<\/strong>&nbsp;and&nbsp;<strong>unzip<\/strong>&nbsp;utilities in Linux. Use these commands to better manage your files.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Zip and unzip functions make file transfer tasks much simpler. This tutorial will show you how to use Linux commands to unzip files and improve your VPS workflow. Zip is a commonly used compression function that is portable and user-friendly. You can even unzip files in Windows that were created in Linux. Unzip is not ..<\/p>\n<div class=\"clear-fix\"><\/div>\n<p><a href=\"https:\/\/www.webhi.com\/how-to\/setp-by-step-guide-to-using-zip-and-unzip-command-in-linux\/\" title=\"read more...\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[69,279],"tags":[],"yoast_head":"\n<title>Guide to using Zip and Unzip commands in Linux - WebHi Tutorials &amp; Documentations<\/title>\n<meta name=\"description\" content=\"Learn how to use zip and unzip utilities in Linux with this step-by-step guide. Discover how to create, extract, and manage compressed files, and improve your file management skills in Linux.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.webhi.com\/how-to\/setp-by-step-guide-to-using-zip-and-unzip-command-in-linux\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Guide to using Zip and Unzip commands in Linux - WebHi Tutorials &amp; Documentations\" \/>\n<meta property=\"og:description\" content=\"Learn how to use zip and unzip utilities in Linux with this step-by-step guide. Discover how to create, extract, and manage compressed files, and improve your file management skills in Linux.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.webhi.com\/how-to\/setp-by-step-guide-to-using-zip-and-unzip-command-in-linux\/\" \/>\n<meta property=\"og:site_name\" content=\"WebHi Tutorials &amp; Documentations\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/webhi.technology\" \/>\n<meta property=\"article:published_time\" content=\"2023-03-11T12:23:12+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-10-15T13:58:09+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.webhi.com\/how-to\/gilrogre\/2023\/03\/zip_unzip_en.jpg\" \/>\n<meta name=\"author\" content=\"webhi\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@WebHiTechnology\" \/>\n<meta name=\"twitter:site\" content=\"@WebHiTechnology\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"webhi\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"TechArticle\",\"@id\":\"https:\/\/www.webhi.com\/how-to\/setp-by-step-guide-to-using-zip-and-unzip-command-in-linux\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.webhi.com\/how-to\/setp-by-step-guide-to-using-zip-and-unzip-command-in-linux\/\"},\"author\":{\"name\":\"webhi\",\"@id\":\"https:\/\/www.webhi.com\/how-to\/#\/schema\/person\/b31e76e2311cdc0bb90f5e2733059a54\"},\"headline\":\"Guide to using Zip and Unzip commands in Linux\",\"datePublished\":\"2023-03-11T12:23:12+00:00\",\"dateModified\":\"2024-10-15T13:58:09+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.webhi.com\/how-to\/setp-by-step-guide-to-using-zip-and-unzip-command-in-linux\/\"},\"wordCount\":1188,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.webhi.com\/how-to\/#organization\"},\"articleSection\":[\"Linux system administration\",\"Softwares and Tools\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.webhi.com\/how-to\/setp-by-step-guide-to-using-zip-and-unzip-command-in-linux\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.webhi.com\/how-to\/setp-by-step-guide-to-using-zip-and-unzip-command-in-linux\/\",\"url\":\"https:\/\/www.webhi.com\/how-to\/setp-by-step-guide-to-using-zip-and-unzip-command-in-linux\/\",\"name\":\"Guide to using Zip and Unzip commands in Linux - WebHi Tutorials &amp; Documentations\",\"isPartOf\":{\"@id\":\"https:\/\/www.webhi.com\/how-to\/#website\"},\"datePublished\":\"2023-03-11T12:23:12+00:00\",\"dateModified\":\"2024-10-15T13:58:09+00:00\",\"description\":\"Learn how to use zip and unzip utilities in Linux with this step-by-step guide. Discover how to create, extract, and manage compressed files, and improve your file management skills in Linux.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.webhi.com\/how-to\/setp-by-step-guide-to-using-zip-and-unzip-command-in-linux\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.webhi.com\/how-to\/setp-by-step-guide-to-using-zip-and-unzip-command-in-linux\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.webhi.com\/how-to\/setp-by-step-guide-to-using-zip-and-unzip-command-in-linux\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.webhi.com\/how-to\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Guide to using Zip and Unzip commands in Linux\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.webhi.com\/how-to\/#website\",\"url\":\"https:\/\/www.webhi.com\/how-to\/\",\"name\":\"WebHi Tutorials &amp; Documentations\",\"description\":\"System administration and knowledge base\",\"publisher\":{\"@id\":\"https:\/\/www.webhi.com\/how-to\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.webhi.com\/how-to\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.webhi.com\/how-to\/#organization\",\"name\":\"WebHi Technology\",\"url\":\"https:\/\/www.webhi.com\/how-to\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.webhi.com\/how-to\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.webhi.com\/how-to\/gilrogre\/2022\/07\/logo.png\",\"contentUrl\":\"https:\/\/www.webhi.com\/how-to\/gilrogre\/2022\/07\/logo.png\",\"width\":288,\"height\":95,\"caption\":\"WebHi Technology\"},\"image\":{\"@id\":\"https:\/\/www.webhi.com\/how-to\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/webhi.technology\",\"https:\/\/twitter.com\/WebHiTechnology\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.webhi.com\/how-to\/#\/schema\/person\/b31e76e2311cdc0bb90f5e2733059a54\",\"name\":\"webhi\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.webhi.com\/how-to\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/www.webhi.com\/how-to\/ahuphiph\/litespeed\/avatar\/e20da107d0f4c765ead2eef88ad019d8.jpg?ver=1783634435\",\"contentUrl\":\"https:\/\/www.webhi.com\/how-to\/ahuphiph\/litespeed\/avatar\/e20da107d0f4c765ead2eef88ad019d8.jpg?ver=1783634435\",\"caption\":\"webhi\"},\"sameAs\":[\"https:\/\/www.webhi.com\/how-to\"],\"url\":\"https:\/\/www.webhi.com\/how-to\/author\/webhi\/\"}]}<\/script>\n","yoast_head_json":{"title":"Guide to using Zip and Unzip commands in Linux - WebHi Tutorials &amp; Documentations","description":"Learn how to use zip and unzip utilities in Linux with this step-by-step guide. Discover how to create, extract, and manage compressed files, and improve your file management skills in Linux.","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:\/\/www.webhi.com\/how-to\/setp-by-step-guide-to-using-zip-and-unzip-command-in-linux\/","og_locale":"en_US","og_type":"article","og_title":"Guide to using Zip and Unzip commands in Linux - WebHi Tutorials &amp; Documentations","og_description":"Learn how to use zip and unzip utilities in Linux with this step-by-step guide. Discover how to create, extract, and manage compressed files, and improve your file management skills in Linux.","og_url":"https:\/\/www.webhi.com\/how-to\/setp-by-step-guide-to-using-zip-and-unzip-command-in-linux\/","og_site_name":"WebHi Tutorials &amp; Documentations","article_publisher":"https:\/\/www.facebook.com\/webhi.technology","article_published_time":"2023-03-11T12:23:12+00:00","article_modified_time":"2024-10-15T13:58:09+00:00","og_image":[{"url":"https:\/\/www.webhi.com\/how-to\/gilrogre\/2023\/03\/zip_unzip_en.jpg"}],"author":"webhi","twitter_card":"summary_large_image","twitter_creator":"@WebHiTechnology","twitter_site":"@WebHiTechnology","twitter_misc":{"Written by":"webhi","Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"TechArticle","@id":"https:\/\/www.webhi.com\/how-to\/setp-by-step-guide-to-using-zip-and-unzip-command-in-linux\/#article","isPartOf":{"@id":"https:\/\/www.webhi.com\/how-to\/setp-by-step-guide-to-using-zip-and-unzip-command-in-linux\/"},"author":{"name":"webhi","@id":"https:\/\/www.webhi.com\/how-to\/#\/schema\/person\/b31e76e2311cdc0bb90f5e2733059a54"},"headline":"Guide to using Zip and Unzip commands in Linux","datePublished":"2023-03-11T12:23:12+00:00","dateModified":"2024-10-15T13:58:09+00:00","mainEntityOfPage":{"@id":"https:\/\/www.webhi.com\/how-to\/setp-by-step-guide-to-using-zip-and-unzip-command-in-linux\/"},"wordCount":1188,"commentCount":0,"publisher":{"@id":"https:\/\/www.webhi.com\/how-to\/#organization"},"articleSection":["Linux system administration","Softwares and Tools"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.webhi.com\/how-to\/setp-by-step-guide-to-using-zip-and-unzip-command-in-linux\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.webhi.com\/how-to\/setp-by-step-guide-to-using-zip-and-unzip-command-in-linux\/","url":"https:\/\/www.webhi.com\/how-to\/setp-by-step-guide-to-using-zip-and-unzip-command-in-linux\/","name":"Guide to using Zip and Unzip commands in Linux - WebHi Tutorials &amp; Documentations","isPartOf":{"@id":"https:\/\/www.webhi.com\/how-to\/#website"},"datePublished":"2023-03-11T12:23:12+00:00","dateModified":"2024-10-15T13:58:09+00:00","description":"Learn how to use zip and unzip utilities in Linux with this step-by-step guide. Discover how to create, extract, and manage compressed files, and improve your file management skills in Linux.","breadcrumb":{"@id":"https:\/\/www.webhi.com\/how-to\/setp-by-step-guide-to-using-zip-and-unzip-command-in-linux\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.webhi.com\/how-to\/setp-by-step-guide-to-using-zip-and-unzip-command-in-linux\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.webhi.com\/how-to\/setp-by-step-guide-to-using-zip-and-unzip-command-in-linux\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.webhi.com\/how-to\/"},{"@type":"ListItem","position":2,"name":"Guide to using Zip and Unzip commands in Linux"}]},{"@type":"WebSite","@id":"https:\/\/www.webhi.com\/how-to\/#website","url":"https:\/\/www.webhi.com\/how-to\/","name":"WebHi Tutorials &amp; Documentations","description":"System administration and knowledge base","publisher":{"@id":"https:\/\/www.webhi.com\/how-to\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.webhi.com\/how-to\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.webhi.com\/how-to\/#organization","name":"WebHi Technology","url":"https:\/\/www.webhi.com\/how-to\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.webhi.com\/how-to\/#\/schema\/logo\/image\/","url":"https:\/\/www.webhi.com\/how-to\/gilrogre\/2022\/07\/logo.png","contentUrl":"https:\/\/www.webhi.com\/how-to\/gilrogre\/2022\/07\/logo.png","width":288,"height":95,"caption":"WebHi Technology"},"image":{"@id":"https:\/\/www.webhi.com\/how-to\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/webhi.technology","https:\/\/twitter.com\/WebHiTechnology"]},{"@type":"Person","@id":"https:\/\/www.webhi.com\/how-to\/#\/schema\/person\/b31e76e2311cdc0bb90f5e2733059a54","name":"webhi","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.webhi.com\/how-to\/#\/schema\/person\/image\/","url":"https:\/\/www.webhi.com\/how-to\/ahuphiph\/litespeed\/avatar\/e20da107d0f4c765ead2eef88ad019d8.jpg?ver=1783634435","contentUrl":"https:\/\/www.webhi.com\/how-to\/ahuphiph\/litespeed\/avatar\/e20da107d0f4c765ead2eef88ad019d8.jpg?ver=1783634435","caption":"webhi"},"sameAs":["https:\/\/www.webhi.com\/how-to"],"url":"https:\/\/www.webhi.com\/how-to\/author\/webhi\/"}]}},"_links":{"self":[{"href":"https:\/\/www.webhi.com\/how-to\/wp-json\/wp\/v2\/posts\/4218"}],"collection":[{"href":"https:\/\/www.webhi.com\/how-to\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.webhi.com\/how-to\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.webhi.com\/how-to\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.webhi.com\/how-to\/wp-json\/wp\/v2\/comments?post=4218"}],"version-history":[{"count":5,"href":"https:\/\/www.webhi.com\/how-to\/wp-json\/wp\/v2\/posts\/4218\/revisions"}],"predecessor-version":[{"id":9511,"href":"https:\/\/www.webhi.com\/how-to\/wp-json\/wp\/v2\/posts\/4218\/revisions\/9511"}],"wp:attachment":[{"href":"https:\/\/www.webhi.com\/how-to\/wp-json\/wp\/v2\/media?parent=4218"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.webhi.com\/how-to\/wp-json\/wp\/v2\/categories?post=4218"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.webhi.com\/how-to\/wp-json\/wp\/v2\/tags?post=4218"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}