Directory can't remove!

Hello my friends,

I have a directory called
log_old

when I try to delete it, it tells me no such file or directory.

Then I tried to run this command:

ls -lb

It tells me the directory name, it is: log_old1\177

!!

I tried to remove it using inode, using this command:

find . -xdev -inum 16433 -exec rmdir -rf {} +

It tells me this message: log_old directory is not empty.

But it is empty and I'm sure.
Please help me, how can I delete this directory?

using just rm -rf ...
But my concern is more I never saw a message that is untrue when it comes to a directory, so what is it? If its a mounting point and you remved lost+found, you are looking for trouble... But if it is try to umount it, it will tell you if it can, in your case it should not be able... which means and explains the not empty, someone removed a file that was still open... so you are to use fuser -cku to kill whatever process his there...

try:

$ ls -la log_old1?

or:

$ find log_old1?

and check for names that begin with a '.' ('dot') ;

also assert that this is not an NFS mountpoint, for it would yield access permission errors as well.

HTH

good luck, and success !

alexandre botao

It looks like you have a DELETE/BACKSPACE character stuck on the end of your directory name.
That is...

\177

...octal.
It might be worth a long shot to put your directory inside double quotes...

rmdir -rf "log_old1\177"

Just a thought...

EDIT:

IMPORTANT!!! Take heed of vbe's advice too...

try renaming using the i node number and then try to remove