Communiquez avec les autres et partagez vos connaissances professionnelles

Inscrivez-vous ou connectez-vous pour rejoindre votre communauté professionnelle.

Suivre

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

user-image
Question ajoutée par Syed Ashar Hasan Shahbazi , DevOps Support Manager , 10Pearls
Date de publication: 2014/01/22
Utilisateur supprimé
par Utilisateur supprimé

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
par 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.

Utilisateur supprimé
par Utilisateur supprimé

use the below command

tar -cvzf    detination_file.tgz    <sorice_file_Name>

More Questions Like This

Avez-vous besoin d'aide pour créer un CV ayant les mots-clés recherchés par les employeurs?