home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / unix / question / 15179 < prev    next >
Encoding:
Internet Message Format  |  1993-01-05  |  1.8 KB

  1. Path: sparky!uunet!paladin.american.edu!howland.reston.ans.net!zaphod.mps.ohio-state.edu!cs.utexas.edu!rutgers!micro-heart-of-gold.mit.edu!xn.ll.mit.edu!ll.mit.edu!yasu
  2. From: yasu@ll.mit.edu (Alan Yasutovich)
  3. Newsgroups: comp.unix.questions
  4. Subject: Re: a simple question about rm
  5. Message-ID: <1993Jan5.175040.483@ll.mit.edu>
  6. Date: 5 Jan 93 17:50:40 GMT
  7. References: <C0DwyB.5Ht@news.cso.uiuc.edu>
  8. Sender: news@ll.mit.edu
  9. Distribution: usa
  10. Organization: MIT Lincoln Laboratory
  11. Lines: 40
  12.  
  13. In article <C0DwyB.5Ht@news.cso.uiuc.edu> hpcg9070@uxa.cso.uiuc.edu (H Prasad Cherukuri) writes:
  14. >
  15. >I have the following question about rm. 
  16. >
  17. >When using rm with the option -r to remove files in a directory recursively
  18. >in interactive mode(I have an alias set up for rm so that I am prompted to 
  19. >verify everytime I want to remove a file), I noticed that I am asked to
  20. >verify twice to remove a directory.
  21. >
  22. >For example, suppose that I have an empty directory called "junk". So
  23. >I enter at the prompt:
  24. >
  25. >    $rm -r junk
  26. >    directory junk: ?(y/n) y
  27. >    junk: ? (y/n) y
  28. >    $
  29. >
  30. >My question is why does the machine ask me twice? I noticed that if I
  31. >say yes to the first question and no to the second question, it doesn't
  32. >do anything(it doesn't remove the directory junk).  
  33. >
  34. >I am asking this out of curioisity as I am not very familiar with
  35. >computers. Pardon me if this is too dumb a question.
  36. >
  37. >
  38. >harish
  39. >
  40. >harish@m.tam.uiuc.edu
  41. >hpcg9070@uxa.cso.uiuc.edu
  42.  
  43.  
  44.     Here's another one.  Why can root remove stuff if
  45.     all permissions are off.  I did a test once to see if
  46.     I could use this as a mask, and it failed.
  47.  
  48. -- 
  49.     Alan Yasutovich
  50.     "inquiring  (and nosey) minds WANT TO KNOW!!!"
  51.     I can remember when "safe sex" meant having a padded headboard!!
  52.     Tick Tock.....Tick Tock......Tick Tock .....Tick Tock......
  53.