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?


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>

Try this:

tar -zxvf file.tar.gz

gunzip <filename>

then

tar -xvf <tar-file-name>