cd ~/Downloads/archive.tar.gz #first navigate to file location tar -xzvf archive.tar.gz -C /path/to/new/directory/ #-C flag will change the extraction to a new directory. #remove -C if you want to extract it to current location.