Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.
You must have omitted the ls: "ls -lod .", sans quotes. Can you access the file in any other way, e.g., with mv, touch, stat, mdls, ditto? Have you tried removing the directory in which it resides: "sudo rm -rf name_of_dir"?
 
You must have omitted the ls: "ls -lod .", sans quotes. Can you access the file in any other way, e.g., with mv, touch, stat, mdls, ditto? Have you tried removing the directory in which it resides: "sudo rm -rf name_of_dir"?


sudo rm -f returns: Invalid argument

and

ls -lod . returns: drwx------ 4 dhartlen 264 12 Feb 16:38 .
 
I just noticed that Apple changed the flags of the ls command. Please repeat the ls commands using a capital O instead of a lower case one. So, cd to where the file is, type (or paste) "ls -lO" and "ls -lOd .", without the quotes. Then cd up one level ("cd ..") and try to remove the directory: "sudo rm -rf name_of_dir". If that fails, try to affect the offending file with some classical commands, e.g., mv, touch, stat, mdls, ditto, chmod.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.