.tar.gz: Difference between revisions

from HTYP, the free directory anyone can edit if they can prove to me that they're not a spambot
Created page with "<hide> page type::article thing type::filename extension thing type::file type </hide> ==About== .tar.gz is the most common file extension for a fileset which ..."
 
to create a .tar
 
Line 7: Line 7:
[[.tar.gz]] is the most common file extension for a fileset which has been collected into a [[tarball]] ([[.tar]]) and then [[file compression|compressed]] using [[gzip]] ([[.gz]]).
[[.tar.gz]] is the most common file extension for a fileset which has been collected into a [[tarball]] ([[.tar]]) and then [[file compression|compressed]] using [[gzip]] ([[.gz]]).
==How To==
==How To==
To create a .tar.gz file from the contents of a folder (including subfolders):
* [[UNIX/tar|tar]] -cvzf ''output_filename''.tar ''foldername''/
** not sure if this also gzips... testing.
To restore the original fileset:
To restore the original fileset:
* [[gunzip]] ''filespec.tar.gz''
* [[gunzip]] ''filespec.tar.gz''
* [[UNIX/tar|tar]] -xvf ''filespec.tar''
* [[UNIX/tar|tar]] -xvf ''filespec.tar''

Latest revision as of 02:22, 29 June 2012

<hide> page type::article thing type::filename extension thing type::file type </hide>

About

.tar.gz is the most common file extension for a fileset which has been collected into a tarball (.tar) and then compressed using gzip (.gz).

How To

To create a .tar.gz file from the contents of a folder (including subfolders):

  • tar -cvzf output_filename.tar foldername/
    • not sure if this also gzips... testing.

To restore the original fileset: