LinuxQuestions.org
Visit Jeremy's Blog.
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 01-10-2007, 10:25 AM   #1
AndeAnderson
Member
 
Registered: Feb 2005
Location: Pennsylvania
Distribution: Debian (maybe)
Posts: 237

Rep: Reputation: 30
Question Recursively - What?


I thought I was going to do just a simple cleanup after rebuilding our website with CSS by deleting the extra directories which Front Page used and we didn't need anymore.

So I went to mc | selected the directory | hit the old F8 key | said Yes I want to delete this directory and all of the files in it.

Another dialog box came up and asked "Directory Not Empty" "Delete it recursively?"

I did not know what to select; Yes | No | All | None | Abort so I aborted.

What does it mean "recursively"??? I am not familiar with that term except in CAD drawings.

My search showed a lot of people using this word but not what it means in Linux.

Excuse my ignorance, but I had not run into its use before now.
 
Old 01-10-2007, 10:39 AM   #2
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian + kde 4 / 5
Posts: 6,837

Rep: Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981
Recursive in this case just means that it will descend into the directory structure and apply the command to all the files it contains before applying it to the directory itself. If the directory contains other directories, it will descend into them as well, and so on. Hence the "recursive" name.
 
Old 01-10-2007, 10:42 AM   #3
pwc101
Senior Member
 
Registered: Oct 2005
Location: UK
Distribution: Slackware
Posts: 1,847

Rep: Reputation: 128Reputation: 128
Quote:
Originally Posted by dictionary.com
re·cur·sive
–adjective
1. pertaining to or using a rule or procedure that can be applied repeatedly.
Basically, if you do something recursively (like delete files), it will do it in the top directory, and all subdirectories; it repeats the procedure. So, rm -r /home/AndeAnderson would delete all your home directory's folders (as well as the AndeAnderson folder itself). If you're sure there's nothing in that directory you want, you can select recursively.
 
Old 01-10-2007, 10:57 AM   #4
AndeAnderson
Member
 
Registered: Feb 2005
Location: Pennsylvania
Distribution: Debian (maybe)
Posts: 237

Original Poster
Rep: Reputation: 30
Thumbs up Recursively answer (Solved)

Quote:
Originally Posted by David the H.
Recursive in this case just means that it will descend into the directory structure and apply the command to all the files it contains before applying it to the directory itself. If the directory contains other directories, it will descend into them as well, and so on. Hence the "recursive" name.
Thanks. That was an excellent explanation and is greatly appreciated. Now I can finish clearing out all of the old M$ FrontPage directories.
 
  


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
recursively search basak Linux - Software 1 08-13-2006 11:25 AM
cat recursively MiniMe001 Linux - General 8 07-17-2006 01:17 AM
stripping ^m recursively. SaxiDawg Linux - General 1 06-07-2006 05:27 AM
rm dir recursively allelopath Linux - General 6 01-06-2006 12:37 PM
RemovePkg Recursively? Kenji Miyamoto Slackware 3 05-23-2005 09:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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