LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   rmdir trm cmd (https://www.linuxquestions.org/questions/linux-general-1/rmdir-trm-cmd-12320/)

psyklops 01-21-2002 09:11 PM

rmdir trm cmd
 
Im trying to rmdir in the terminal. Im root so I would think it would let me however it tells me the dir is NOT empty. I wouldn't think this would hold me up.

How do rmdir so I dont have to go through each dir and rm each little file...?

DavidPhillips 01-21-2002 09:27 PM

-r will remove all contents recursively
-f will force without prompt for each file

rm -rf /foldertoremove

psyklops 01-21-2002 09:32 PM

Im getting "invalid option" for -rf. Why is this?

DavidPhillips 01-21-2002 09:45 PM

it's rm -rf /folder

sorry about that

psyklops 01-21-2002 09:49 PM

It worked! Thankyou.


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