Register now or log in to join your professional community.
Try this: tar -zcvf tar-archive-name.tar.gz source-folder-name
but I prefer bz2 format
tar -cvjf tar-archive-name.tar.gz source-folder-name
The name of the tar command is short for tape archiving, commonly used for simply combine a few files into a single file, for easy storage and distribution. A version of tar produced by the Free Software Foundation, If your system uses GNU tar, you can easily use gzip (the GNU file compression program) in conjunction with tar to create compressed archives. To do this, enter:tar -cvzf file.tar.gz inputfile1 inputfile2Here, the z option tells tar to zip the archive as it is created.
use the below command
tar -cvzf detination_file.tgz <sorice_file_Name>