how to. unzip a tar.gz file in mac terminal code example Example: extract tar.gz mac command line tar -xzvf myfile.tar.gz