How to kill a dir?

Alexander Dalloz alexander.dalloz at uni-bielefeld.de
Mon Jan 5 18:48:09 UTC 2004


Am Mo, den 05.01.2004 schrieb WipeOut um 19:09:
> I have a dir that I can't seem to delete and is giving strange errors..
> 
> [root at dev02 i386]# ls
> ls: ??*?: Invalid or incomplete multibyte or wide character
> test
> [root at dev02 i386]# rm -rf test
> rm: cannot remove directory `test': Directory not empty
> [root at dev02 i386]# cd test
> [root at dev02 test]# ls
> ls: : No such file or directory
> 
> Anyone got any super commands for getting rid of a directory that just 
> will not go?
> 
> Thanks..
> 
> Later..

Hm, I do not know how you produced these invalid charactes but you might
try this inside the directoy where the damaged "test directory is (be
sure that there is no other file or directory which matches the code:

rm -rf -- *test*

Alexander


-- 
Alexander Dalloz | Enger, Germany
PGP key valid: made 13.07.1999
PGP fingerprint: 2307 88FD 2D41 038E 7416  14CD E197 6E88 ED69 5653





More information about the fedora-list mailing list