Quote:
Originally Posted by dafunks
Try:
tar xvf blacklists.tar.gz
|
That will work for files ending in .tar; you are missing the 'z' flag:
Code:
tar xvzf blacklists.tar.gz
will decompress it and extract the contents from the tarball.
To just decompress it, do:
Code:
gunzip blacklists.tar.gz
which will produce blacklists.tar
And just in case you're curious, to recompress the tarball:
Code:
gzip blacklists.tar
Flags of tar:
- x - extract
- z - use gunzip compression (*.gz or *.Z)
- j - use bzip compression (*.bz2)
- f - next argument is the file to process
- v - verbose output
If you use gunzip to try and decompress the .tar.gz file and it complains that it is not in gzip format, then maybe the file is not a gz file even though it has that extension.
Try
Code:
file blacklists.tar.gz
See if that tells you if it is a gzipped file.