Search This Blog

Google Analytics

Monday, January 23, 2012

How to extract tar ball (tar.gz, tgz) using command line?

If you have a tgz or a tar.gz archive, you may use the following to extract its files using command line interface.

Extract to current directory.

tar -zxf yourtarball.tgz

Extract to a different target directory.

tar -C ~/owndirectory -zxf yourtarball.tgz

No comments:

Post a Comment

Do provide your constructive comment. I appreciate that.

Popular Posts