ok, so today i was playing around with tar. i had a compressed tarball file and i wanted to uncompress to a particular file.

for example, lets say i was in my home directory: /home/wallpaperama

and in my /home/wallpaperama/ there was a file caleld wallpapers.tar.gz

but when i uncompress the file with this command:

tar xvfz wallpapers.tar.gz


this would extract all the files in my home directory (my current working directory) but what i wanted to so was to execute the command from my home directory but uncompress the files to another directory.. for example i wanted to send all the umcompressed files to /var/www/html/ so this is how it should be done:

tar xvfz wallpapers.tar.gz -C /var/www/html/


home that helps