Tar.gz: Difference between revisions

From KlavoWiki
Jump to navigationJump to search
No edit summary
No edit summary
Line 6: Line 6:
To create a .tar.gz file use the following command.
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
    -x extract files from an archive
 
    -v verbosely list files processed
    -f use archive file or device ARCHIVE
    -z filter the archive through gzip
</pre>
</pre>


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

Revision as of 00:36, 8 May 2009

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

tar xvzf file

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

tar cvzf filename.tar.gz source

Switches

    -c create a new archive
    -x extract files from an archive

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