How do I unzip a tar gz archive to a specific destination?

Solution 1:

You have two choices:

cd /root/Desktop/folder
tar xf /root/Documents/file.tar.gz

or

tar xf file.tar.gz -C /root/Desktop/folder