LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 11-30-2001, 09:20 AM   #1
RedHatMN
Member
 
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!!

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

Rep: Reputation: 30
rm -rf
 
Old 12-05-2001, 02:33 PM   #3
ryandelany
Member
 
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.

Ryan
 
  


Reply


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 01:47 PM
Remove a Directory browser Linux - Newbie 8 08-11-2005 08:28 AM
help how to remove directory blackman890 Mandriva 6 11-09-2004 06:06 PM
how to remove a directory Meatball1337 Linux - Software 2 10-10-2004 09:39 AM
remove directory?? KaktusKnight Linux - General 8 05-31-2003 01:26 PM


All times are GMT -5. The time now is 04:32 AM.

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