home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / unix / question / 15169 < prev    next >
Encoding:
Text File  |  1993-01-05  |  1.2 KB  |  40 lines

  1. Newsgroups: comp.unix.questions
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!uwm.edu!ux1.cso.uiuc.edu!news.cso.uiuc.edu!uxa.cso.uiuc.edu!hpcg9070
  3. From: hpcg9070@uxa.cso.uiuc.edu (H Prasad Cherukuri)
  4. Subject: a simple question about rm
  5. Message-ID: <C0DwyB.5Ht@news.cso.uiuc.edu>
  6. Sender: usenet@news.cso.uiuc.edu (Net Noise owner)
  7. Organization: University of Illinois at Urbana
  8. Distribution: usa
  9. Date: Tue, 5 Jan 1993 14:15:45 GMT
  10. Lines: 28
  11.  
  12.  
  13. I have the following question about rm. 
  14.  
  15. When using rm with the option -r to remove files in a directory recursively
  16. in interactive mode(I have an alias set up for rm so that I am prompted to 
  17. verify everytime I want to remove a file), I noticed that I am asked to
  18. verify twice to remove a directory.
  19.  
  20. For example, suppose that I have an empty directory called "junk". So
  21. I enter at the prompt:
  22.  
  23.     $rm -r junk
  24.     directory junk: ?(y/n) y
  25.     junk: ? (y/n) y
  26.     $
  27.  
  28. My question is why does the machine ask me twice? I noticed that if I
  29. say yes to the first question and no to the second question, it doesn't
  30. do anything(it doesn't remove the directory junk).  
  31.  
  32. I am asking this out of curioisity as I am not very familiar with
  33. computers. Pardon me if this is too dumb a question.
  34.  
  35.  
  36. harish
  37.  
  38. harish@m.tam.uiuc.edu
  39. hpcg9070@uxa.cso.uiuc.edu
  40.