Unix tar commands to automatically gzip and bzip2 the tar files and gunzip and bunzip2 tar/zipped files
Created: 6 January 2006 Modified:Originally published on chrislynch.info website.
Create a tar file and bzip2 it up.
tar cvjf filename.tar.bz2
Extract a tar file and bunzip2 at the same time.
tar xvjf filename.tar.bz2
Create a tar file and gzip it up.
tar cvzf filename.tar.gz
Extract a tar file and gunzip at the same time.
tar xvzf filename.tar.gz