Click to See Complete Forum and Search --> : Just to know... And if I renamed every file in ".." ?


[Mystik_Cool]
04-25-2003, 10:12 AM
I wrote a little script, to rename my mp3's. But I made a mistake in the script, and then launched it. I know what's the mistake, that's not the problem. The problem is that every file in the folder where I was working has been renamed in ".." (or ".", I don't know exactly).
Now, when I try a "ls", or when I try to remove the directory with the console, I have an error message, saying something like problem in access to NFS file (don't know what it gives in english).

I was able to delete the directory under KDE (so, in fact, there is no real problem...), but could I have done that with the console ? How ?

That's just by curiosity :)

Sepero
04-26-2003, 03:48 AM
rm -r <dirname>

That will remove a directory if it's not empty. You can add the "-f" option to force it if needed.

[Mystik_Cool]
04-26-2003, 06:34 AM
No. I should have mentionned I of course tried rm-rf, the only thing I had is the error message about access to NFS file.