Visit Jeremy's Blog.
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 08-29-2003, 05:13 PM   #1
Registered: Aug 2003
Location: P'boro, UK
Distribution: Fedora Core 1 (Yarrow)
Posts: 87

Rep: Reputation: 15
Deleting Whole Trees

Despite it being environment-damaging, I was wondering if there are console commands that will delete entire directory trees? I have a /lot/ of useless stuff in my downloads directory and often want to get rid of install directories without having to go through all 50 sub-directories deleting everything and then the sub-directories themselves and then all the files in the directory and then the directory itself.

Don't worry, my forestry will be safety-conscious.

Old 08-29-2003, 05:14 PM   #2
Senior Member
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 60
rm -rf /nameofdirectory


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
Data structures - Trees rahul_kulkarni Programming 1 05-16-2005 05:45 AM
deleting old kernel trees fourleggedant Linux - Newbie 1 09-17-2004 08:42 PM
CVS trees in windows DAChristen29 Linux - Software 0 01-13-2004 09:12 AM
How to keep 2 directory trees synchronised? hrr Linux - General 2 07-02-2003 12:01 PM
Not seeing forest for the trees zuessh Linux - Software 16 02-17-2003 07:34 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:35 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