Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
rm -d doesnt work
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
TheCoop
Veteran
Veteran


Joined: 15 Jun 2002
Posts: 1814
Location: Where you least expect it

PostPosted: Fri Jul 26, 2002 10:06 am    Post subject: rm -d doesnt work Reply with quote

i am trying to remove a whole directory tree (one directory with several sub- and sub-sub-directories.
rm -d on the base directory gives "cannot unlink <basedir>, is a directory

how do i remove the whole tree with one commands, or do i have to go through every directory and remove them one by one?
_________________
95% of all computer errors occur between chair and keyboard (TM)

"One World, One web, One program" - Microsoft Promo ad.
"Ein Volk, Ein Reich, Ein Führer" - Adolf Hitler

Change the world - move a rock
Back to top
View user's profile Send private message
thor
n00b
n00b


Joined: 18 Jul 2002
Posts: 25
Location: m-ger

PostPosted: Fri Jul 26, 2002 10:13 am    Post subject: Reply with quote

hi

rm -r (recursive) should do the job ...
_________________
good things come to those who ....................... wait
Back to top
View user's profile Send private message
ElCondor
Guru
Guru


Joined: 10 Apr 2002
Posts: 520
Location: Vienna, Austria, Europe

PostPosted: Fri Jul 26, 2002 10:14 am    Post subject: Reply with quote

I'd strongly recommend to use rm -r for removing directory-trees. rm -s might cause filesystem inconsistency in some cases, and that's not worth the speed!

* ElCondor pasa *
_________________
Here I am the victim of my own choices and I'm just starting!
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20067

PostPosted: Fri Jul 26, 2002 6:00 pm    Post subject: Reply with quote

Be very careful with 'rm -r'. It is not forgiving :D Perhaps 'rm -ir' would be worth mentioning. (-i Prompt for confirmation.). Also 'man rm'
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum