Crear archivo Tar GZ desde el directorio
tar -czf tarball.tar.gz my_directory/
Famous Flatworm
tar -czf tarball.tar.gz my_directory/
tar -xvf file.tar.gz
tar -xzf file.tar.gz
They are identical.
I think in the old package repo days,
.tgz was used because files on DOS floppies could only have three letter
extensions. When this limitation was removed,
.tar.gz was used to be more verbose by showing both the archive type (tar)
and zipper (gzip).
# compress
tar czvf < archive_name >.tar.gz < path >
# extract
tar xzvf < archive_name >.tar.gz
tar xzvf < archive_name >.tar.gz -C /home/usera/tmp
tar -czvf projects.tar.gz projects/