Compressed Archive Syntax:
tar -zcvf archive_name.tar.gz directory_or_file_to_compress
DeCompress (Extract) Archive Syntax:
tar -zxvf archive_name.tar.gz
see also
search terms linux tar.gz files, linux extract tar.gz, linux zip files, how to compress files on linux