I've downloaded mongodb-linux-x86_64-2.6.3.tgz
file using windows 7 and kept it on D:\Amra\Software\Developing Soft
location.
When I right click this .tgz file using Ubuntu and see property it shows Location: /media/towhid/Amra/Software/Developing Soft
. Now how will I unzip this .tgz file using tar
command from terminal?
Best Answer
To extract a
.tgz
file with tar you need to use,where,
x
for extractv
for verbosez
for gnuzipf
for file, should come at last just before file name.You can use the following command in a terminal to unzip the file in your case,
Extract a
.tgz
file in different directory:One can use
-C
option to extract archive contents to a different directory as following,