1847255 Members
5553 Online
110263 Solutions
New Discussion

tar help

 
SOLVED
Go to solution
Sheri Will
New Member

tar help

I need to "tar up" some core files and rename it. How do I do that?

Also, I was emailed avtar.z file, I need to place it in a directory, how do I get it from my desktop to the server directory?
4 REPLIES 4
unixdaddy
Trusted Contributor
Solution

Re: tar help

issue the following command:-

# tar -cvf tar_name core*

this will name your file tar_name with the core files in it.

There are loads of ftp clients on the web to get files from your PC to the UNIX machine. I use ftpexplorer to do this.
Patrick Wallek
Honored Contributor

Re: tar help

If you need to create a tar archive of selected files do the follwoing:

cd /directory/where/files/are/located
tar -cvf file_to_store_to.tar ./filenames_to_tar

With the file that was e-mailed to you:

you say it is on your desktop... Are you talking about your PC desktop? If so, use FTP to ftp it from you windows PC to your unix machine. Be sure to use the binary mode in FTP. Once the file is on your unix machine you will need to uncompress it (I assume it is compressed since it has a .Z extension. Also, make sure the .Z is an upper case Z on your unix machine). To uncompress do a 'uncompress avtar.Z' Then you can untar the file. Do a 'tar -xvf avtar' to untar it. Make sure you are in the directory you want the information stored in before you invoke tar. If you want to see what the file contains you can do a 'tar -tvf avtar'.
Victor BERRIDGE
Honored Contributor

Re: tar help

Hi,
You want to create an archive containing core files?
1)rename your corefiles to core.1 core.2 etc...
2) put them in a directory
3) tar -cvf ./corefiles.tar

As for avtar.z, I dont know what kind of desktop you are using, NT? in any case ther is the command ftp:
ftp
give your accountname and passwd for the server, you will once connected,be in your home directory, so:
get avtar.z
bye

thats all
Good luck

Victor
Victor BERRIDGE
Honored Contributor

Re: tar help

Sorry,
you would do a put not a get,I was distracted by another ftp problem (difficult to be multitask...)

All the best

Victor