Tar and Untar commands

tar -cvzf mytar.tar.gz sourcefilesordir/creates new tar file
tar -xzvf mytar.tar.gz destination – extracts tar.gz file-any
fileordir – compresses a file with gzip.
gunzip file.gz – decompresses a file with gzip.
tar -xvf mytar.tar.gz destination – extracts tar filegzip