Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 11-30-2001, 10:20 AM   #1
Registered: Mar 2001
Distribution: RedHat 9
Posts: 110

Rep: Reputation: 15
Thumbs up 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!!

Old 11-30-2001, 10:34 AM   #2
Registered: Jul 2001
Location: Braunschweig, Germany
Distribution: Suse 7.2
Posts: 184

Rep: Reputation: 30
rm -rf
Old 12-05-2001, 03:33 PM   #3
Registered: Dec 2001
Location: Orange County, CA
Distribution: RedHat 7.2, 7.3, 8.0
Posts: 66

Rep: Reputation: 15
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.



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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
rm: cannot remove directory `ff': Directory not empty blancs Linux - General 17 08-29-2011 02:47 PM
Remove a Directory browser Linux - Newbie 8 08-11-2005 09:28 AM
help how to remove directory blackman890 Mandriva 6 11-09-2004 07:06 PM
how to remove a directory Meatball1337 Linux - Software 2 10-10-2004 10:39 AM
remove directory?? KaktusKnight Linux - General 8 05-31-2003 02:26 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:59 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration