Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 08/12/2015, à 16:04

akera

Confusion between archiving and compressing ?

I’m going to write what I think is correct and if I’m mistaken please correct me and you’re help is much appreciated. Here are the commands that I wish to get understanding of:

tar –c file > file.tar
tar –cf file.tar file // this command and the previous one are about the same

I think that the previous commands merely create a sort of common folder (archive) in which we have the exact files we had before executing the archiving command (the size is not reduced at all)
The only difference is that the third one will produce an archive with .gz instead of .tar.
To reduce the archive’s size (compress it) we HAVE to use:

tar -cjf file.tar.bz2 file
tar –cJf file.tar.xz file
gzip file.tar // it’ll create a compressed file called file.tar.gz
tar -cz file  > file.tar.gz 

Basically if it’s .gz .bz2 .xz => compressed and .tar = > archived
Is that right ? I feel so very confused…
I hope I've posted this in the right place.

Hors ligne

#2 Le 08/12/2015, à 18:46

cqfd93

Re : Confusion between archiving and compressing ?

Modération

Bonjour,

Nous sommes sur un forum francophone donc merci de poser votre question en français.


cqfd93

En ligne

#3 Le 08/12/2015, à 18:46

pingouinux

Re : Confusion between archiving and compressing ?

Bonjour,

I hope I've posted this in the right place.

Pas exactement… Tu es ici sur le forum francophone.

Hors ligne

#4 Le 08/12/2015, à 21:10

el_joko

Re : Confusion between archiving and compressing ?

hi, maybe you don't undertand french,
this is not a good place to get english answer because this is a french site,
sorry, if I kew this answer that would be with a great pleasure i would help you...
good luck for your search
see you

Hors ligne

#5 Le 08/12/2015, à 21:18

cqfd93

Re : Confusion between archiving and compressing ?

Bon, je me fends d'un petit lien : Ubuntu Forums (in English)


cqfd93

En ligne