Tar is used to combine the files together and Gzip is used to compress and uncompress the files.
Here is an example of its usage:
To create a tar file we can use the below lines:
$tar -cvf test.tar filesToBeCombined
To compress the tar ball we can use :
$gzip filesToBeCombined.tar