Sunday, May 25, 2014

Uncompressing files with .bz2 or .tar.gz extension

Use tar command to uncompress any file with .tar.bz2 extension, such as

$tar xvfj pcre-8.35.tar.bz2 -C test

To uncompress files with .tar.gz extension you can use tar as well

$tar xvfz pcre-8.35.tar.gz -C test

To uncompress just a single .bz2 file, you can use "bzip" utility

$ bzip2 -d pcre-8.35.tar.bz2

No comments:

Post a Comment