- Forums
- Tutorial And Guides
- How To Untar A File To A Specific File Destination
This Page Contains information about How To Untar A File To A Specific File Destination By wallpaperama in category Tutorial And Guides with 0 Replies. [1521], Last Updated: Sat May 18, 2024
wallpaperama
Tue Apr 14, 2009
0 Comments
1953 Visits
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