Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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:
tar xf filename.tar.gz -C /root/

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

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

Its simple? Wink
Kunnu (Administrator) - Best Web Hosting

Create a Ticket

Forum Jump:

Users browsing this thread: 1 Guest(s)