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 this

Extracting tz

Postby Jensdk on 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
Jensdk
Level 1
Level 1
 
Posts: 2
Joined: Tue Mar 31, 2009 11:28 am

Linux Mint is funded by ads and donations.
 

Re: Extracting tz

Postby rbanavara on 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
User avatar
rbanavara
Level 4
Level 4
 
Posts: 233
Joined: Mon Jun 02, 2008 9:07 am

Re: Extracting tz

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

Thanks a lot!
It works very fine :D
Jensdk
Level 1
Level 1
 
Posts: 2
Joined: Tue Mar 31, 2009 11:28 am

Re: Extracting tz

Postby emorrp1 on 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
emorrp1
Level 8
Level 8
 
Posts: 2322
Joined: Thu Feb 26, 2009 8:58 pm

Re: Extracting tz

Postby rbanavara on 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
User avatar
rbanavara
Level 4
Level 4
 
Posts: 233
Joined: Mon Jun 02, 2008 9:07 am


Return to Newbie Questions

Who is online

Users browsing this forum: badger44, mikecolley, Oldbwl, rbmorse, Xol and 34 guests