Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to extract or unzip tar.gz file to a specific destination?
#1
Tongue 
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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)