• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 401
  • Last Modified:

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
0
jpetter
Asked:
jpetter
  • 2
1 Solution
 
ozoCommented:
Did you try quoting it?
0
 
jpetterAuthor Commented:
I did just now, and it worked great. Doh!, don't know why I didn't think of that.

Awesome, thanks a lot!

Jeff
0
 
woolmilkporcCommented:
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 {} \;



0
 
jpetterAuthor Commented:
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
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: CompTIA Cloud+

The CompTIA Cloud+ Basic training course will teach you about cloud concepts and models, data storage, networking, and network infrastructure.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now