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

TextWrangler is the Python Free Editor for Mac

TextWrangler is a good free Python Editor for Mac made on the base of TextEdit.
TextWrangler knows how highligh the syntax of Python (Simultron don't) etc.

The link for download of TextWrangler is this http://www.barebones.com/products/textwrangler/download.html

Open files from the Terminal with the appropriate application


open foo.jpg

open -a Preview foo.jpg

open -a "Adobe Photoshop 10.0" foo.jpg

Refer to this link http://hints.macworld.com/article.php?story=2004012218171997