{"id":158,"date":"2013-12-04T00:30:25","date_gmt":"2013-12-04T00:30:25","guid":{"rendered":"https:\/\/mellowhost.com\/blog\/?p=158"},"modified":"2016-01-28T11:40:38","modified_gmt":"2016-01-28T11:40:38","slug":"how-to-open-gz-file-in-linuxunix","status":"publish","type":"post","link":"https:\/\/mellowhost.com\/blog\/how-to-open-gz-file-in-linuxunix.html","title":{"rendered":"How to open .gz file in Linux\/Unix?"},"content":{"rendered":"<p>You need to use gzip\/gunzip program to open\/extract a .gz file. It is based on DEFLATE algorithm. All the Linux\/Unix comes with default gzip\/gunzip program as it is used as primary compression technique in Linux\/Unix based system.<\/p>\n<p><strong>How to extract a .gz file?<\/strong><\/p>\n<p><code>gunzip yourcompressfile.gz<\/code><\/p>\n<p>or<\/p>\n<p><code>gzip -d yourcompressfile.gz<\/code><\/p>\n<p>-d refers to decompress the gzip file.<\/p>\n<p>To view the latest file, type<\/p>\n<p><code>ls -l<\/code><\/p>\n<p><strong>How to extract tar.gz file?<\/strong><\/p>\n<p>tar.gz files are tar files compressed with gunzip. You can use the tar program in Linux to extract a tar.gz file as following:<\/p>\n<p><code>tar -xvzf yourfile.tar.gz<\/code><\/p>\n<p>Here, x = extract, v = verbose, z = gzip, f = force<\/p>\n<p>If the tar file isn&#8217;t compressed with gunzip, then you need to exclude the &#8216;z&#8217; option which would be as following:<\/p>\n<p><code>tar -xvf yourfile.tar<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>You need to use gzip\/gunzip program to open\/extract a .gz file. It is based on DEFLATE algorithm. All the Linux\/Unix comes with default gzip\/gunzip program as it is used as primary compression technique in Linux\/Unix based system. How to extract a .gz file? gunzip yourcompressfile.gz or gzip -d yourcompressfile.gz -d refers to decompress the gzip &hellip; <a href=\"https:\/\/mellowhost.com\/blog\/how-to-open-gz-file-in-linuxunix.html\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;How to open .gz file in Linux\/Unix?&#8221;<\/span><\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[11,12,21,25],"tags":[],"_links":{"self":[{"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/posts\/158"}],"collection":[{"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/comments?post=158"}],"version-history":[{"count":1,"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/posts\/158\/revisions"}],"predecessor-version":[{"id":267,"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/posts\/158\/revisions\/267"}],"wp:attachment":[{"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/media?parent=158"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/categories?post=158"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/tags?post=158"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}