Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Uncompress tar.gz file [closed]

With the usage of wget command line I got a tar.gz file. I downloaded it in the root@raspberrypi. Is there any way to uncompress it in the /usr/src folder?

like image 902
dali1985 Avatar asked May 03 '13 10:05

dali1985


People also ask

How do I uncompress a tar gz file?

Simply right-click the item you want to compress, mouseover compress, and choose tar. gz. You can also right-click a tar. gz file, mouseover extract, and select an option to unpack the archive.


1 Answers

Use -C option of tar:

tar zxvf <yourfile>.tar.gz -C /usr/src/ 

and then, the content of the tar should be in:

/usr/src/<yourfile> 
like image 161
qingchen Avatar answered Oct 22 '22 05:10

qingchen