View Full Version : tar how do you unzip?
hearts
03-01-1999, 06:59 PM
I have donwloaded a CGI script and the zipped file is .tar. Are ya supposed to upload this tar file and unzip it via telnet? and if so how? If this is something that shoudn't be answered in the forum cuz of security reasons, could someone email me details how to do this? and yes, i am a FQ client! http://www.aota.net/ubb/wink.gif
To look inside the file type
$ zcat yourfile.tar.Z | tar tvf -
or
$ unzip yourfile.tar.zip | tar tvf -
use xvf to unpack the file
Stan
------------------
Stan P. van de Burgt stan@dmo.com (PGP 0x853296C5)
DMO, P.O. box 1248, 3500 BE, Utrecht, the Netherlands
hearts
03-01-1999, 07:29 PM
i am looking at this and feel totally intimidated. http://www.aota.net/ubb/frown.gif My best experience with telnet is to check a path to perl or mail. SO basically, I am a telnet dummy. I always get nervous and panic when trying something new. Been a while since I hit panic mode.
clearing my head... as best I can.
do i have to go to a directory? I believe I have printed instructions on this.
then I type this command?
i guess I need the abc's or the 1 2 3's of this.
my email is hearts@heartsweb.com
and my ICQ number is 3176751
I would appreciate it if ya got the time.
thank you.
[This message has been edited by hearts (edited 03-01-99).]
Hi Hearts,
Sorry about that.
The idea is to upload the compressed file you have (file.tar.zip) to your website with for example WS_FTP. If I remember correctly, Deb told you how to do that. Don't forget to upload in binary mode.
After that, use telnet to log in.
Type ls to check your file is there.
Then type
unzip file.tar.zip | tar tvf -
It should list the files in the archive.
To unpack it, type
unzip file.tar.zip | tar txf -
and then type ls again to see the unpacked files.
Stan
I'll send you an email too.
Stan
[This message has been edited by stan (edited 03-01-99).]
Justin
03-01-1999, 08:30 PM
Just for information, WinZip supports .tar and .gz files and a host of others... That's how I usually do it, since you usually have to edit the files once unpacked. Doing it on the server means you upload, unpack, download, edit, and re-upload.
------------------
Justin Nelson, SFE Software
www.vdj.net (http://www.vdj.net)
hearts
03-01-1999, 08:37 PM
i tried using winzip and it didn't like it.
and.. I do know how to upload.. hehehe. IT IS TELNET that intimidates me, means ya have to use REAL brain power. http://www.aota.net/ubb/wink.gif AND I hate the idea of screwing up. *sigh*
LeafWind
03-01-1999, 08:44 PM
I just wanted to say thanks to Hearts for asking this question -- I've been wondering about this, too, having just started to learn to work with cgi scripts.
I've also had problems using winzip with tar files -- some error message that winzip can't read it, or something like that. Maybe we're both trying to work with the same script? Who knows . . . http://www.aota.net/ubb/wink.gif
I think I'll bookmark this thread, I know I'm going to have to get into telnet sooner or later.
Thanks,
Bekariso
------------------
www.LeafWind.com (http://www.LeafWind.com)
Growing web sites that thrive in the winds of change.
Justin
03-01-1999, 09:17 PM
I use WinZip 6.3 - I don't like version 7.0. I don't know if that means anything, and maybe there are different formats of tar files - I don't know. I guess you'll have to do the (no, no, please don't say it) Telnet (Argh!) thing http://www.aota.net/ubb/smile.gif
------------------
Justin Nelson, SFE Software
www.vdj.net (http://www.vdj.net)
I use WinZip 6.(something) on the Sony box at home. It wouldn't process/understand tar, gz or Z archives until I installed PKZip ( www.pkware.com (http://www.pkware.com) ) and told WinZip where to find it... Now it handles tar.gz and such just fine.
However, I recently put Win98 on the other box (Compaq, Pentium 90, 48mb RAM, 6.4gb HDD, also have RedHat Linux5.2 running on it http://www.aota.net/ubb/smile.gif ), and tried installing winzip on it. It works fine, as long as I only wanna undo .zip files. It breaks on .tar.gz just like it used to do on the Sony. I tried installing PKZip on it, and telling winzip where to find it (just like on the Sony), but it doesn't work... So far I can't get it to gunzip, untar, anything. Highly annoying.
Del
Justin
03-01-1999, 09:58 PM
You know, I have pkzip and WinRAR installed too - maybe that's why I haven't had a problem yet. Usually if it's a .gz.tar file, it extracts to \windows\temp and then opens the .gz and shows the contents. Maybe the other proggies are helping it out...
I'm not sure. I kinda thought it was just built in - guess I was wrong http://www.aota.net/ubb/smile.gif
------------------
Justin Nelson, SFE Software
www.vdj.net (http://www.vdj.net)
In WinZip (Classic Mode, dunno about Wizard), up under Options there's a spot to tell it where some 'helper apps' live. PKZip, PKUnzip, and several others have spots there that need filled in. In the Win98 box, every time I try telling it where PKZip lives, it gives an error saying 'this does not appear to be a valid DOS application' or something. I've tried it with every version of PKZip I can find, including the command line versions...
Andrew has repeatedly recommended using Windows Commander for this type of duties, so that will be my next attempt. Unfortunately, I can't seem to figure out how to tell Windows Commander that it's running behind a proxy/firewall, so I can't get it's FTP features running (similar to my problems getting ICQ to run on Win98 behind a proxy). If anyone has any theories as to why those don't work, I'm still listening http://www.aota.net/ubb/smile.gif *hint hint*
Del
vBulletin® v3.6.8, Copyright ©2000-2012, Jelsoft Enterprises Ltd.