-   Linux - General (
-   -   Cant delete directories/files (

skopje909 11-07-2001 05:16 PM

Cant delete directories/files
If I give the command "rm -rf /2001/*" it will not delete all files ! It gives permission denied msg. I am logged in as root so I should have superuser privaleges. Any suggestions...

acid_kewpie 11-07-2001 05:26 PM

well, aren't you using the command incorrectly i think. if you're just gonna delete the entire directory, then you shouldn't use the *'s. you're trying to recursivel delete files, which naturally doesn't make sense, as they're files not directories, so rm may well be getting screwed up over that. have you tried looking at these files that it won't delete?

taz.devil 11-07-2001 05:59 PM

rm will get rid of dirs fine but if you want to delete files use shred.

shred -u /directory/* or whatever files...

All times are GMT -5. The time now is 11:58 AM.