Re: [OT] Linux snafoo
- Posted by Greg Haberek <g.haberek at comcast.net> Feb 25, 2003
- 420 views
i've tried all these: rm -xvz.tgz rm "-xvz.tgz" rm *.tgz -- only .tgz file in the directory mv -xvz.tgz temp.tgz -- then rm temp.tgz i tried rm -d on the directory, but that wont work either ----- Original Message ----- From: Derek Parnell <ddparnell at bigpond.com> To: EUforum <EUforum at topica.com> Sent: Tuesday, February 25, 2003 3:32 AM Subject: Re: [OT] Linux snafoo On Tue, 25 Feb 2003 03:21:03 -0500, Greg Haberek <g.haberek at comcast.net> wrote: > > nope, same error.. > > > ----- Original Message ----- From: Derek Parnell <ddparnell at bigpond.com> > To: EUforum <EUforum at topica.com> > Sent: Tuesday, February 25, 2003 3:13 AM > Subject: Re: [OT] Linux snafoo > > > On Tue, 25 Feb 2003 03:05:46 -0500, Greg Haberek <g.haberek at comcast.net> > wrote: > >> >> silly linux, 'del' is for windows! >> >> please forgive me, I'm very new to Linux and this may be a trivial >> issue, but I was wondering if >> those of you fluent in this wonderful OS could help me... somehow, >> probably by my own mistake, >> tar ran into an error, and left a file called "-xvz.tgz" and when I try >> to rm it, I get an >> error.. >> >> rm: invalid option -- x >> >> how do I delete this file? (mv returns the same error) obviously it >> thinks I'm trying to pass a >> parameter, not a file name >> > > Try ... > > rm *xvz.tgz > Of course! My Unix is rusty too. The *xvz.tgz would be expanded by the shell into -xvz.tgz and you'd stillhave the error. So try escaping the file name like this... rm "-xvz.tgz" -- cheers, Derek Parnell TOPICA - Start your own email discussion group. FREE!