Projekt

Allgemein

Profil

Aktionen

tar

tar is installed by default

basic tar usage

the most *nix-style way of getting help for tar is man tar

for doing some basic storing/unpacking the following sequences should be enough.

to tar (with gzip)

tar -cvzf tarfilename foldername

to tar (with parallel gzip)

tar --use-compress-program="pigz" -cvf tarfilename foldername

to untar

tar -xvzf tarfilename

the example will tar the folder abc to the archive abc.tar.gz:

tar -cvzf abc.tar.gz abc

for doing the same while preserving permissions

to tar

tar -pcvzf tarfilename foldername

to untar

tar -pxvzf tarfilename

the example will tar the folder abc to the archive abc.tar.gz:

tar -pcvzf abc.tar.gz abc

Von Jeremias Keihsler vor mehr als 2 Jahren aktualisiert · 2 Revisionen