1. [OT] Linux snafoo

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

~Greg
g.haberek at comcast.net

PS: logging in as root doesn't help..

new topic     » topic index » view message » categorize

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

-- 

cheers,
Derek Parnell

new topic     » goto parent     » topic index » view message » categorize

3. Re: [OT] Linux snafoo

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

-- 

cheers,
Derek Parnell



TOPICA - Start your own email discussion group. FREE!

new topic     » goto parent     » topic index » view message » categorize

4. 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>
> 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 message » categorize

5. Re: [OT] Linux snafoo

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!

new topic     » goto parent     » topic index » view message » categorize

6. Re: [OT] Linux snafoo

Greg Haberek wrote:

> 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

Try either of these:

rm \-xvz.tgz

rm -- -xvz.tgz

Carl

-- 
[ Carl R White == aka () = The Domain of Cyrek = ]
[ Cyrek the Illogical /\ www.cyreksoft.yorks.com ]

new topic     » goto parent     » topic index » view message » categorize

7. Re: [OT] Linux snafoo

thanks Carl!  rm -- -xvz.tgz worked! odd though, I thought -- was for
parameters, dunno.. I
guess I'm still new


----- Original Message -----
From: Carl W. <euphoria at cyreksoft.yorks.com>
Subject: Re: [OT] Linux snafoo



Greg Haberek wrote:

> 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

Try either of these:

rm \-xvz.tgz

rm -- -xvz.tgz

Carl

--
[ Carl R White == aka () = The Domain of Cyrek = ]
[ Cyrek the Illogical /\ www.cyreksoft.yorks.com ]



TOPICA - Start your own email discussion group. FREE!

new topic     » goto parent     » topic index » view message » categorize

8. Re: [OT] Linux snafoo

I remember I had to do the following on an Unix mainframe, very long
ago; should work in linux as well:
1/ get a directory listing by inodes (it's some option of ls -- "ls -i"
possibly)
2/ rm the file with that inode (possibly "rm -i").

	Look at your local man to get the exact syntax, because I don't
precisely remember it, and I don't have this at hand.

HTH

CChris

> 
> Date: Tue, 25 Feb 2003 03:05:46 -0500
> From: Greg Haberek <g.haberek at comcast.net>
> Subject: [OT] Linux snafoo
> 
> 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
> 
> ~Greg
> g.haberek at comcast.net
> 
> PS: logging in as root doesn't help..
> 
> 
> End of EUforum at topica.com digest, issue 2381

new topic     » goto parent     » topic index » view message » categorize

9. Re: [OT] Linux snafoo

Now I remember. "--" signifies the end of the options. The rest are files or
other stuff.

----------------
cheers,
Derek Parnell
----- Original Message -----
From: "Greg Haberek" <g.haberek at comcast.net>
To: "EUforum" <EUforum at topica.com>
Subject: Re: [OT] Linux snafoo


>
> thanks Carl!  rm -- -xvz.tgz worked! odd though, I thought -- was for
parameters, dunno.. I
> guess I'm still new
>
>
> ----- Original Message -----
> From: Carl W. <euphoria at cyreksoft.yorks.com>
> To: EUforum <EUforum at topica.com>
> Sent: Tuesday, February 25, 2003 4:24 AM
> Subject: Re: [OT] Linux snafoo
>
>
> Greg Haberek wrote:
>
> > 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
>
> Try either of these:
>
> rm \-xvz.tgz
>
> rm -- -xvz.tgz
>
> Carl
>
> --
> [ Carl R White == aka () = The Domain of Cyrek = ]
> [ Cyrek the Illogical /\ www.cyreksoft.yorks.com ]
>
>
> TOPICA - Start your own email discussion group. FREE!
>
>
>
> TOPICA - Start your own email discussion group. FREE!
>

new topic     » goto parent     » topic index » view message » categorize

10. Re: [OT] Linux snafoo

Another way to do this (and believe me in UNIX there are a lot of ways of
doing the same thing!) is to type:

  rm ./-xvz.tgz

or specify the full pathname:

  rm /home/greg/-xvz.tgz

Regards,

Andy Cranston.

At 09:04 PM 2/25/03 +1100, you wrote:
>
>Now I remember. "--" signifies the end of the options. The rest are files or
>other stuff.
>
>----------------
>cheers,
>Derek Parnell
>----- Original Message -----
>From: "Greg Haberek" <g.haberek at comcast.net>
>To: "EUforum" <EUforum at topica.com>
>Sent: Tuesday, February 25, 2003 8:50 PM
>Subject: Re: [OT] Linux snafoo
>
>
>> thanks Carl!  rm -- -xvz.tgz worked! odd though, I thought -- was for
>parameters, dunno.. I
>> guess I'm still new
>>
>>
>> ----- Original Message -----
>> From: Carl W. <euphoria at cyreksoft.yorks.com>
>> To: EUforum <EUforum at topica.com>
>> Sent: Tuesday, February 25, 2003 4:24 AM
>> Subject: Re: [OT] Linux snafoo
>>
>>
>> Greg Haberek wrote:
>>
>> > 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
>>
>> Try either of these:
>>
>> rm \-xvz.tgz
>>
>> rm -- -xvz.tgz
>>
>> Carl
>>
>> --
>> [ Carl R White == aka () = The Domain of Cyrek = ]
>> [ Cyrek the Illogical /\ www.cyreksoft.yorks.com ]
>>
>>
>> TOPICA - Start your own email discussion group. FREE!
>>
>>
>> TOPICA - Start your own email discussion group. FREE!
>>
>
>
>
>TOPICA - Start your own email discussion group. FREE!
>
>

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu