Extracting tz

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read how to get help
Jensdk
Level 1
Level 1
Posts: 2
Joined: Tue Mar 31, 2009 11:28 am

Extracting tz

Postby Jensdk » Tue Mar 31, 2009 11:33 am

Hey all
I am trying to install a program called S-plus. I have it in a compressed .TZ file. I would like to use the command

Code: Select all

zcat /[mount_point]/SPLUS.TZ | tar xvf -


I know that [mount_point] is where the file is located, but how do I specify where to extract with this command?

Many thanks

User avatar
rbanavara
Level 4
Level 4
Posts: 230
Joined: Mon Jun 02, 2008 9:07 am

Re: Extracting tz

Postby rbanavara » Tue Mar 31, 2009 5:58 pm

the files will be extracted in the path wherever you are. If you need them to be in /home/rbanavara/apps, then

cd /home/rbanavara/apps
zcat /[mount_point]/SPLUS.TZ | tar xvf -

from the desktop GUI, you can use archive manager to extarct the files as well.
Don't fix it if it ain't broken, don't break it if you can't fix it -Husse

Jensdk
Level 1
Level 1
Posts: 2
Joined: Tue Mar 31, 2009 11:28 am

Re: Extracting tz

Postby Jensdk » Wed Apr 01, 2009 12:04 pm

Thanks a lot!
It works very fine :D

emorrp1
Level 8
Level 8
Posts: 2281
Joined: Thu Feb 26, 2009 8:58 pm

Re: Extracting tz

Postby emorrp1 » Wed Apr 01, 2009 12:13 pm

tar has the -C flag to do what you want:

Code: Select all

zcat /[mount_point]/SPLUS.TZ | tar xvf - -C /path/to/dir
If you have a question that has been answered and solved, then please edit your original post and put a [SOLVED] at the end of your subject header
Hint - use a google search including the search term site:forums.linuxmint.com

User avatar
rbanavara
Level 4
Level 4
Posts: 230
Joined: Mon Jun 02, 2008 9:07 am

Re: Extracting tz

Postby rbanavara » Wed Apr 01, 2009 2:41 pm

The above solution to use -C option, is a clean solution (mine was a crude one). Actually I was overwhelmed by the options for tar in the man page!
Don't fix it if it ain't broken, don't break it if you can't fix it -Husse


Return to “Newbie Questions”

Who is online

Users browsing this forum: Baidu [Spider] and 12 guests