If you’ve ever unzipped or untarred a tar.gz or tar.bz2 file, you know that it can be a time-consuming process. With the help of the unzip command, you can zip or untar files in one step using just a few simple commands. ..


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.

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

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