LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Need some quick help removing/deleting folders (https://www.linuxquestions.org/questions/linux-general-1/need-some-quick-help-removing-deleting-folders-550771/)

Tenover 05-02-2007 05:02 PM

Need some quick help removing/deleting folders
 
Running Linux RH7.3. The drive is full and I need to simply move a bunch of outdated directories to my windows machine. I am an Admin on the machine. When, from my local XP machine, try to move any folders from the Linux server to my machine, it seems to move "most" everything over and then says "cannot remove directory <thedirectoryname>: The folder is not empty"....

Any help? Thank you.

GrapefruiTgirl 05-02-2007 05:12 PM

Have you looked to see what specifically is left, if anything, in the folder in question? COuld it be a permissions issue?

jay73 05-02-2007 06:06 PM

Why does the message mention "removing" something when you appear to be moving things? A bit confusing, really. So do you need to delete the directory or do you want it simply moved?

Tenover 05-02-2007 07:20 PM

I am simply trying to MOVE a bunch of directories, all which contain lots of small files, to a share on my windows machine.

jay73 05-02-2007 07:33 PM

Sounds as it the moving process is having some trouble cleaning up the source folders. Any idea what could be left behind, any folders/files with special permissions (e.g. sticky)?

rob.rice 05-02-2007 10:42 PM

if you want to remove a directorie here is the kinfe that will do it
but remember to use this with the up most of care because it can
delete the whole file system at once

the fastest way to remove a directorie is

" rm -r directorie_to_remove "

remember this command can if run as root delete the whole file system at once


All times are GMT -5. The time now is 12:50 AM.