Uncompress tar.gz file

dali1985 picture dali1985 · May 3, 2013 · Viewed 150.6k times · Source

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?

Answer

qingchen picture qingchen · May 3, 2013

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>