• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 398
  • 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

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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