Wednesday, October 26, 2011

How to create TGZ archive with TAR

First of all: extension *.tar is the as tar.gz

Create tgz Archive with this command:
tar -cvzf newArchive.tgz sourceFileOrFolderNameForArchive


What is -cvzf:
c - "create" it means you want to create this archive
- "verbose" if you want to see the process... it shows details about the results of running tar.
- "zip" it means you want to compress file. tar will use the `compress' program.
- "filename" it means you  want to name archive with the specific name.

If you want to read the TAR manual in Terminal type in Terminal man tar
Or read this here http://ss64.com/bash/tar.html

No comments: