LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Remove a Directory (https://www.linuxquestions.org/questions/linux-newbie-8/remove-a-directory-9442/)

RedHatMN 11-30-2001 09:20 AM

Remove a Directory
 
Quck question...

When I want to remove a directory and everything below it (files, subdirectories, etc...) I usr "rm -r directoryname", but when I do that it prompts me for all of the deletions... is there any way to tell it to automaticlly delete everything without promting me, like a "Yes to All"??

Thanks in Advance!!

Aaron

Steave 11-30-2001 09:34 AM

rm -rf

ryandelany 12-05-2001 02:33 PM

Check the .bashrc file in the home directory of the user you are logged in as.

Sometimes there is an alias set up for rm which is rm -i which will prompt you for confirmation of each file. This is usually setup by default on RedHat.

You can comment or remove this entry and rm should function the way you want it to.

Ryan


All times are GMT -5. The time now is 12:16 PM.