Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.
Go into the Legal.rtf directory. Do:

ls -lq

The 'q' option shows nonprintable characters in the filename as a '?' character. I'm curious to see if that's part of the problem.
 
Go into the Legal.rtf directory. Do:

ls -lq

The 'q' option shows nonprintable characters in the filename as a '?' character. I'm curious to see if that's part of the problem.

lb0004:~ sandymartinez$ cd /users/sandymartinez/desktop/legal.rtf
lb0004:/users/sandymartinez/desktop/legal.rtf sandymartinez$ ls -lq
ls: Tiếng Việt.html: No such file or directory
lb0004:/users/sandymartinez/desktop/legal.rtf sandymartinez$
 
try:

ls -b

it should display non-printable characters using their octal equivalents.

lb0004:~ sandymartinez$ cd /users/sandymartinez/desktop/legal.rtf
lb0004:/users/sandymartinez/desktop/legal.rtf sandymartinez$ ls -b
Tie\314\202\314\201ng Vie\314\202\314\243t.html
lb0004:/users/sandymartinez/desktop/legal.rtf sandymartinez$
 
While in legal.rtf, do:

stat -x *

That'll give you the Inode numbers of all files in the directory, including this troublesome Tieng file. We are going to remove this file, not by name but by Inode number. Post this number here.
 
<duplicate post>

lb0004:/users/sandymartinez/desktop/legal.rtf sandymartinez$ stat -x *
stat: Tiếng Việt.html: stat: No such file or directory
lb0004:/users/sandymartinez/desktop/legal.rtf sandymartinez$
 
Ok, since we had some luck with 'ls -b', let's do it again and get the inode number with 'i', i.e.

ls -ib

That should print out something like:

123456 Tie\314\202\314\201ng Vie\314\202\314\243t.html

where '123456' is the files inode number. Take that number and use it as follows:

find . -inum 123456 exec rm -f {} \;
 
Ok, since we had some luck with 'ls -b', let's do it again and get the inode number with 'i', i.e.

ls -ib

That should print out something like:

123456 Tie\314\202\314\201ng Vie\314\202\314\243t.html

where '123456' is the files inode number. Take that number and use it as follows:

find . -inum 123456 exec rm -f {} \;

lb0004:/users/sandymartinez/desktop/legal.rtf sandymartinez$ ls -ib
ls: Tiếng Việt.html: No such file or directory
 
Are you sure that you verified the integrity of your filesystem with Disk Utility? This sounds like filesystem corruption to me.
 
I'd try swapping the order of the 'b' and 'i' arguments to ls, so 'ls -bi' instead of 'ls -ib', and try my suggestion one more time.

If that doesn't work, then I'm guessing your filesystem is corrupted. You can either run fsck as root or open /Applications/Utilities/Disk Utility.app and check the integrity of your filesystem.
 
Out of curiosity, I tried to reproduce:
Code:
craig:~/tmp# touch "`echo $'Tie\314\202\314\201ng Vie\314\202\314\243t.html'`"
craig:~/tmp# ls
Tiếng Việt.html
craig:~/tmp# rm Tiếng\ Việt.html 
craig:~/tmp# ls
craig:~/tmp#

I'm guessing possible disk issue -- I would run fsck as suggested.

Also -- what filesystem are you using? (Open Disk Utility, select your partition, then at the bottom of the app read Format)
 
Thanks everyone for your help, file system needed minor repair
problem fixed and files deleted. Thanks again.
 
I have tried everything to delete this file
Renaming
Terminal (rm -rt)
nothing works...Can anybody help?

I had a similar problem. I ended up moving the file to /tmp/ to get rid of it (that worked), but I don't know why.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.