Re: [OT] Linux snafoo

new topic     » goto parent     » topic index » view thread      » older message » newer message

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>
> 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

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu