You are not logged in.

#1 2009-06-10 23:37:29

whoops
Member
Registered: 2009-03-19
Posts: 891

[solved]remove file with irregular name

Hi!
I'm not entirely sure, if the Newbie Corner is the right place for this, but as I for some reason at the moment feel a... little... bit stupid and noobish, I guess it should do...:


Well, long story short... after a while of playing with nano, vi, mv, and sed, I sort of managed to create a file named

-'"\'".\hehe\"'\"'*

and a directory that is called

-'"\'".\hehe\"'\"*

... and I sort of can't remove it.

Any ideas?
edit: I tried a gui file manager, but I sort of have no write privileges and can't chown the two, too.


(P.S.: I regret nothing, this HAD to happen sooner or later. I cannot imagine how anyone should be able to avoid it roll)

Last edited by whoops (2009-06-10 23:54:55)

Offline

#2 2009-06-10 23:38:48

lucke
Member
From: Poland
Registered: 2004-11-30
Posts: 4,019

Re: [solved]remove file with irregular name

I'd use mc.

Offline

#3 2009-06-10 23:50:44

Arm-the-Homeless
Member
Registered: 2008-12-22
Posts: 273

Re: [solved]remove file with irregular name

whoops wrote:

Well, long story short... after a while of playing with nano, vi, mv, and sed, I sort of managed to create a file named

-'"\'".\hehe\"'\"'*

and a directory that is called

-'"\'".\hehe\"'\"*

How the hell did you do that?

Offline

#4 2009-06-10 23:54:38

whoops
Member
Registered: 2009-03-19
Posts: 891

Re: [solved]remove file with irregular name

Oooh, "Norton Commander"-thingy, great, that obviously did it, thanks!

(And from now on I'm going to try such stuff in /tmp just in case.)

Offline

#5 2009-06-11 00:00:14

whoops
Member
Registered: 2009-03-19
Posts: 891

Re: [solved]remove file with irregular name

Arm-the-Homeless wrote:

How the hell did you do that?

Don't know exactly... Some script accidentally created a file called

-.cat*

And when I tried to rm*,  rm told me, it couldn't remove it just like that and that I should try:

rm wrote:

rm ./'-.cat*'

... so I sort of got a little bit curious and/or carried away.

Last edited by whoops (2009-06-11 00:01:55)

Offline

Board footer

Powered by FluxBB