Start networking and exchanging professional insights

Register now or log in to join your professional community.

Follow

In web hosting, which command is used to compress a file in .tar.gz format?

user-image
Question added by Syed Ashar Hasan Shahbazi , DevOps Support Manager , 10Pearls
Date Posted: 2014/01/22

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

Osman Elamin
by Osman Elamin , IT Technical Support Engineer , Judiciary Of Sudan

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>

More Questions Like This

Do you need help in adding the right keywords to your CV? Let our CV writing experts help you.