add gnu; gtar
tar -cf foo.tar dir1 file2
tar -xf foo.tar
tar -tf foo.tar
gunzip -c -d foo.tar.gz | tar -xvf -
gtar -xzvf -