Tar.gz: Difference between revisions
From KlavoWiki
Jump to navigationJump to search
No edit summary |
No edit summary |
||
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> | ||
= Create = | |||
To create a .tar.gz file use the following command. | To create a .tar.gz file use the following command. | ||
<pre> | <pre> | ||
Line 9: | Line 11: | ||
</pre> | </pre> | ||
Switches | = Switches = | ||
<pre> | <pre> | ||
-c create a new archive | -c create a new archive | ||
Line 15: | Line 17: | ||
-v verbosely list files processed | -v verbosely list files processed | ||
-z filter the archive through gzip | |||
-f use archive file or device ARCHIVE | -f use archive file or device ARCHIVE | ||
</pre> | </pre> | ||
[[Category : Linux]] | [[Category : Linux]] |
Revision as of 00:40, 8 May 2009
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 -x extract files from an archive -v verbosely list files processed -z filter the archive through gzip -f use archive file or device ARCHIVE