cli unar gz file code example Example 1: extract tar.gz linux command line tar xvzf file.tar.gz Example 2: how to unzip using tar tar -xf archive.tar.gz