{"id":1784,"date":"2020-07-12T18:51:45","date_gmt":"2020-07-13T01:51:45","guid":{"rendered":"https:\/\/SUMMALAI.COM\/?p=1784"},"modified":"2020-07-12T18:51:46","modified_gmt":"2020-07-13T01:51:46","slug":"how-to-decompress-files-in-gzip","status":"publish","type":"post","link":"https:\/\/SUMMALAI.COM\/?p=1784","title":{"rendered":"How to decompress files in gzip"},"content":{"rendered":"\n<h4 class=\"wp-block-heading\"><em>How to use the Linux or UNIX command line to decompress gzip files.<\/em><\/h4>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"section-0\"><strong>Method for .gz files<\/strong><\/h4>\n\n\n\n<p>Use the following method to decompress gzip files from the command line:<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Use SSH to connect to your server.<br><\/li><li>Enter one of the following:<ul><li>gunzip file.gz<\/li><li>gzip -d file.gz<\/li><\/ul><\/li><li>To see the decompressed file, enter:ls -1<\/li><\/ol>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"section-1\"><strong>Method for tar.gz and .tgz files<\/strong><\/h4>\n\n\n\n<p>Files with the extension tar.gz or .tgz represent tar files compressed with gzip. Observe the following procedure to decompress these files from the Linux command line:<\/p>\n\n\n\n<p>Use SSH to connect to your server.<\/p>\n\n\n\n<p>For&nbsp;tar.gz&nbsp;files, enter:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">gunzip &lt; file.tar.gz | tar xvf -<\/pre>\n\n\n\n<p>For&nbsp;.tgz&nbsp;files, enter:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">gunzip &lt; file.tgz | tar xvf -<\/pre>\n\n\n\n<p>If you use the GNU operating system also known as GNU Tar, use one of the following commands, depending on whether the file uses the&nbsp;tar.gz&nbsp;or&nbsp;.tgz&nbsp;extension:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">tar xvzf file.tar.gz<\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\">tar xvzf file.tgz<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>How to use the Linux or UNIX command line to decompress gzip files. Method for .gz files Use the following method to decompress gzip files from the command line: Use SSH to connect to your server. Enter one of the following: gunzip file.gz gzip -d file.gz To see the decompressed file, enter:ls -1 Method for <a class=\"read-more\" href=\"https:\/\/SUMMALAI.COM\/?p=1784\">Read More<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[5],"tags":[265,126],"class_list":["post-1784","post","type-post","status-publish","format-standard","hentry","category-linux","tag-decompress-gzip","tag-gzip"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=\/wp\/v2\/posts\/1784","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1784"}],"version-history":[{"count":1,"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=\/wp\/v2\/posts\/1784\/revisions"}],"predecessor-version":[{"id":1785,"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=\/wp\/v2\/posts\/1784\/revisions\/1785"}],"wp:attachment":[{"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1784"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1784"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1784"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}