Tar.gz: Difference between revisions

From KlavoWiki
Jump to navigationJump to search
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
= Extract =
To extract a .tar.gz file use the following command.
To extract a .tar.gz file use the following command.
<pre>
<pre>
Line 4: Line 5:
</pre>
</pre>


to create a .tar.gx file use the following command.
= Create =
To create a .tar.gz file use the following command.
<pre>
<pre>
tar cvfz filename.tar.gz source
tar cvzf filename.tar.gz source
</pre>
 
= Switches =
<pre>
    -c create a new archive
    -r append to an existing archive
    -x extract files from an archive
 
    -v verbosely list files processed
    -z filter the archive through gzip
    -f use archive file or device ARCHIVE
</pre>
</pre>


[[Category : Linux]]
[[Category : Linux]]

Latest revision as of 11:43, 7 July 2010

Extract

To extract a .tar.gz file use the following command.

tar xvzf file

Create

To create a .tar.gz file use the following command.

tar cvzf filename.tar.gz source

Switches

    -c create a new archive
    -r append to an existing archive
    -x extract files from an archive

    -v verbosely list files processed
    -z filter the archive through gzip
    -f use archive file or device ARCHIVE