Gossamer Forum
Quote Reply
Tar
I'm trying to tar a directory recursively but when I open the tar after downloading it there seems to be random files and directories missing from the tar file.

tar -cf mytar.tar *

My latest attempt tar'd about 5 directories but there should have been about 20

Does anyone have any idea why?

Last edited by:

Paul: Nov 4, 2002, 6:05 AM
Quote Reply
Re: [Paul] Tar In reply to
Try

tar cvf file.tar *

does it say it's grabbing all the dirs?

Cheers,

Alex
--
Gossamer Threads Inc.
Quote Reply
Re: [Alex] Tar In reply to
Yeah it shows them all. The file is huge....over 1GB...then when I open it up with WinRAR there are only a few directories there :(
Quote Reply
Re: [Alex] Tar In reply to
Phew....seems it might be a WinRAR bug. Winzip extracts all directories properly.
Quote Reply
Re: [Alex] Tar In reply to
Whilst I'm thinking, do you know a good way of recursively deleting a specific file from all directories?

I need to get rid of this .cinik file I have everywhere :(
Quote Reply
Re: [Paul] Tar In reply to
rm -f `find . -name .cinik`

will work. Do a `find . -name .cink` first to make sure it lists all the files you want to remove.

I'd go with Will here though, you should reinstall the o/s, as there is no telling what backdoors the person has left open so that they can get back in at a later date.

Cheers,

Alex
--
Gossamer Threads Inc.
Quote Reply
Re: [Alex] Tar In reply to
Yeah I'm going to do that over the next couple of days.

Just what I needed Frown

Thanks for the help.