LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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
 
LinkBack Search this Thread
Old 05-14-2007, 04:45 PM   #1
jCash
Member
 
Registered: Sep 2006
Posts: 57

Rep: Reputation: 15
Recursive Delete DIR and Sub Dir with CONTENTS


I want to know a simple command to delete folders and subfolders with contents?

I am trying to do this: (I don't want to descend into every single directory.)

[root@localhost local]# rm -r gcc-3.4.4
rm: descend into directory `gcc-3.4.4'?
 
Old 05-14-2007, 05:54 PM   #2
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 56
Do you mean that you don't want prompts?
If so, you could use force.
For example: rm -rf /some/folder
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
my gnome trash always shows my /boot/ dir contents(kernel etc) to delete! deepclutch Debian 2 04-05-2007 06:37 PM
Chown command for dir and contents twinkers Linux - General 1 11-22-2006 05:37 PM
Can I prevent users from seeing dir contents? Jukas Linux - Newbie 5 04-08-2005 07:56 PM
d/l contents of a dir hfawzy Linux - General 2 05-08-2003 12:58 PM
auto rename contents of a DIR bkeating Linux - General 1 11-05-2002 06:34 PM


All times are GMT -5. The time now is 03:17 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration