Parent Category: главный раздел
Category: Linux
Hits: 2841

To gunzip and untar a file in a single step, use the following—note that the z switch is the important one that tells tar to unzip it.

tar xvfz somefilename.tar.gz

To use bunzip2 to extract your tar.bz2 file in a single step, use the j switch instead.

tar xvfj somefilename.tar.bz2

Ahh, nice and simple, just the way we like it.