02-19-2017, 06:42 AM
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:
Other option
Means we moved filename.tar.gz from home to /root folder and now run this command.
Its simple?
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?