Review your favorite Linux distribution.
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 05-14-2007, 04:45 PM   #1
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
Senior Member
Registered: Oct 2003
Posts: 3,057

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


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
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 > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:33 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
Open Source Consulting | Domain Registration