Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

uncompress a .txt.gz file in mac?

How do I uncompress a .txt.gz file in mac?

I already tried unzip file.txt.gz but it says it cannot find zipfile directory in one of file.txt.gz or file.txt.gz.zip, and cannot find file.txt.gz.ZIP, period.

like image 685
Sagar Avatar asked Jun 22 '18 17:06

Sagar


People also ask

How do I uncompress a TXT GZ file?

To open (unzip) a . gz file, right-click on the file you want to decompress and select “Extract”. Windows users need to install additional software such as 7zip to open . gz files.

How do I open a Tar GZ file on a Mac?

An Easier Way (on macOS) For those that don't like using a terminal, you'll be delighted to hear that macOS can open tar and tar. gz files by default with the Archive Utility. Just double click on the file, and it will extract.

How do I open a gz file without unzip?

Just use zcat to see content without extraction. From the manual: zcat is identical to gunzip -c . (On some systems, zcat may be installed as gzcat to preserve the original link to compress .)


1 Answers

gunzip file.txt.gz in Terminal.

like image 159
Mark Adler Avatar answered Oct 21 '22 02:10

Mark Adler