Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 05-02-2007, 05:02 PM   #1
Registered: Mar 2003
Posts: 123

Rep: Reputation: 15
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.
Old 05-02-2007, 05:12 PM   #2
LQ Guru
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 555Reputation: 555Reputation: 555Reputation: 555Reputation: 555Reputation: 555
Have you looked to see what specifically is left, if anything, in the folder in question? COuld it be a permissions issue?
Old 05-02-2007, 06:06 PM   #3
LQ Guru
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 133Reputation: 133
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?
Old 05-02-2007, 07:20 PM   #4
Registered: Mar 2003
Posts: 123

Original Poster
Rep: Reputation: 15
I am simply trying to MOVE a bunch of directories, all which contain lots of small files, to a share on my windows machine.
Old 05-02-2007, 07:33 PM   #5
LQ Guru
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 133Reputation: 133
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)?
Old 05-02-2007, 10:42 PM   #6
Senior Member
Registered: Apr 2004
Distribution: slack what ever
Posts: 1,075

Rep: Reputation: 203Reputation: 203Reputation: 203
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

Last edited by rob.rice; 05-02-2007 at 10:45 PM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
deleting folders with files jayukanna Linux - General 4 08-23-2006 03:28 PM
help i am stupid and quick on deleting partitions :=) sibirski glodavac Linux - Software 5 06-28-2006 06:57 AM
removing folders & its contents wisdom Linux - General 11 12-24-2004 02:10 AM
removing/deleting a user cuss Linux - General 7 02-27-2003 02:27 PM
Deleting old kernel and removing it from boot loader? Koolinux Linux - General 4 11-07-2002 06:10 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:31 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration