Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
add comment

1 Answer

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). –  billc.cn Sep 11 '11 at 13:27
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.