Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to extract or unzip tar.gz file to a specific destination?
02-19-2017, 06:42 AM,
Post: #1
Tongue  How to extract or unzip tar.gz file to a specific destination?
You have a filename.tar.gz file and you wish to extract in a specific directory. For example you are in /home folder and wish to extract it into /root directory.


How to extract or unzip filename.tar.gz to a specific destination?
Run this command:
Code:
tar xf filename.tar.gz -C /root/


Other option
Code:
mv /home/filename.tar.gz /root

Means we moved filename.tar.gz from home to /root folder and now run this command.
Code:
tar -xzvf filename.tar.gz


Its simple? Wink

Kunnu (Administrator)
Dewlance.com - Best Web Hosting

Create a Ticket
Quote this message in a reply
Thread Search Tool


Forum Jump: