How to unzip or extract .tgz or .tar.gz Files using SSH

To extract .tar.gz or .tgz files from terminal or via ssh:

tar -zxvf file.tar.gz

or

tar -zxvf filename.tgz

Leave a Reply