Tar.gz

From KlavoWiki
Revision as of 11:43, 7 July 2010 by David (Sọ̀rọ̀ | contribs) (→‎Switches)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

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