How to kill a dir?

Gerry Maddock gerrym at futuremetals.com
Mon Jan 5 18:51:21 UTC 2004


If that doesn't work, try:
chattr -i /test;rm -rf test

Let me know if that worked for you.


-----Original Message-----
From: fedora-list-admin at redhat.com [mailto:fedora-list-admin at redhat.com] On
Behalf Of Alexander Dalloz
Sent: Monday, January 05, 2004 1:48 PM
To: fedora-list at redhat.com
Subject: Re: How to kill a dir?

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


-- 
fedora-list mailing list
fedora-list at redhat.com
To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list





More information about the fedora-list mailing list