Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a weird folder in my home directory. It's called "..Copied!" This name probably comes from an unfortunate period of time when I had overridden pwd in my bash profile. I learned my lesson and want to get rid of this file now, but it's not accessible, even though it shows up when I search for it using locate.

(It looks likenode.js source files were copied there.)

And I can certainly see it with ls . and then double tabbing.

enter image description here

share|improve this question

Since you can use bash tab completion to ls the file, you can definitely use something like rm -r ..Copied\! to remove it.

If you were asked any questions by rm, you have to use the -f option or chmod -R first.

(Note that you must escape the "!" character as otherwise it's expanded to a task pid.)

share|improve this answer
Not working for me. It fails silently without any error messages. It doesn't autocomplete when I try from rm -r so apparently that command cannot see the folder...but ls . does? – picardo Sep 11 '11 at 1:54
AFAIK, rm will not fail silently. It should always tell you what went wrong. If you can't use tab completion, why not manually copy and paste the path (and do the escaping). – Sep 11 '11 at 13:27

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .