Re: A file that can be seen... but doesn't exist!



On Tue, 30 Jan 2007 02:18:43 -0500, Yugo wrote:

I did an ls on my home directory today and discovered I have a file,
length 0 byte, named \254-][{}\351\350\340. I tried to remove it:
impossible, even when I escape all backslashes:

rm: cannot remove `\\254-][{}\\351\\350\\340': No such file or directory

What the hell is this file dated Jan 3rd and how do I remove it?

try "rm -i -- thatStrangeFileName"

You may need to try NOT backslashing the backslashes.

Since you have some real printable characters in the name, try
"rm -i -- *-][*"

If all else fails, try "rm -i -- *"
Say "n" for all files you want to keep, and "y" for the file you want to
be rid of.

The "--" tells rm to stop looking for switches.
The "-i" means ask first.


Thanks!
.



Relevant Pages

  • Re: A file that can be seen... but doesnt exist!
    ... I tried to remove it: impossible, even when I escape all backslashes: ... What the hell is this file dated Jan 3rd and how do I remove it? ...
    (comp.os.linux.misc)
  • Re: pygame music, cant read mp3?
    ... format is to use backslashes as separators, ... escaped in python's regular string literals, ... only because you've been lucky in not having escape characters following ... Notice that the \ gets doubled automatically by python in many ...
    (comp.lang.python)
  • Re: A file that can be seen... but doesnt exist!
    ... I tried to remove it: impossible, even when I escape all backslashes: ... What the hell is this file dated Jan 3rd and how do I remove it? ...
    (comp.os.linux.misc)
  • Re: A file that can be seen... but doesnt exist!
    ... I escape all backslashes: ... What the hell is this file dated Jan 3rd and how do I remove it? ... I'd use mc, but I'm lazy:). ...
    (comp.os.linux.misc)
  • Re: get only filenames and not directory names under a specific path.
    ... > I'm guess maybe it's must do that when it's double quotes. ... but with two exceptions: the escape character itself ... the string delimiter can also be escaped to allow embedded single quotes, ... means that a path with a trailing backslash needs two backslashes there to avoid ...
    (perl.beginners)