Link to home
Start Free TrialLog in
Avatar of jpetter
jpetter

asked on

Cannot remove file with strange name

Hi,

I don't know how this happened, but I have an 85MB file I'm trying to remove, and regardless of what I try, I can't do it. The filename is: jdk-6u25-linux-i586.bin?e=1318426078&h=1553327594cf7169834cd3425e3f06bc

I'm running CentOS  5.5.

If anyone has any suggestions, I would certainly appreciate them.

Thanks,

Jeff
ASKER CERTIFIED SOLUTION
Avatar of ozo
ozo
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jpetter
jpetter

ASKER

I did just now, and it worked great. Doh!, don't know why I didn't think of that.

Awesome, thanks a lot!

Jeff
Try

rm jdk-6u25-linux-i586.bin*

or

rm 'jdk-6u25-linux-i586.bin?e=1318426078&h=1553327594cf7169834cd3425e3f06bc'

or

ls -li jdk-6u25-linux-i586.bin*

Note the inodenumber from the first column, and use it in

find . -xdev -inum inodenumber -exec rm {} \;



Avatar of jpetter

ASKER

woolmilkporc,

Thanks for the helpful information, and I appreciate the quiick response. Unfortunately ozo had already provided a solution before I saw this come in. But I will certainly document your techniques in my notes.

Thanks,
Jeff