home *** CD-ROM | disk | FTP | other *** search
- 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
- From: yasu@ll.mit.edu (Alan Yasutovich)
- Newsgroups: comp.unix.questions
- Subject: Re: a simple question about rm
- Message-ID: <1993Jan5.175040.483@ll.mit.edu>
- Date: 5 Jan 93 17:50:40 GMT
- References: <C0DwyB.5Ht@news.cso.uiuc.edu>
- Sender: news@ll.mit.edu
- Distribution: usa
- Organization: MIT Lincoln Laboratory
- Lines: 40
-
- In article <C0DwyB.5Ht@news.cso.uiuc.edu> hpcg9070@uxa.cso.uiuc.edu (H Prasad Cherukuri) writes:
- >
- >I have the following question about rm.
- >
- >When using rm with the option -r to remove files in a directory recursively
- >in interactive mode(I have an alias set up for rm so that I am prompted to
- >verify everytime I want to remove a file), I noticed that I am asked to
- >verify twice to remove a directory.
- >
- >For example, suppose that I have an empty directory called "junk". So
- >I enter at the prompt:
- >
- > $rm -r junk
- > directory junk: ?(y/n) y
- > junk: ? (y/n) y
- > $
- >
- >My question is why does the machine ask me twice? I noticed that if I
- >say yes to the first question and no to the second question, it doesn't
- >do anything(it doesn't remove the directory junk).
- >
- >I am asking this out of curioisity as I am not very familiar with
- >computers. Pardon me if this is too dumb a question.
- >
- >
- >harish
- >
- >harish@m.tam.uiuc.edu
- >hpcg9070@uxa.cso.uiuc.edu
-
-
- Here's another one. Why can root remove stuff if
- all permissions are off. I did a test once to see if
- I could use this as a mask, and it failed.
-
- --
- Alan Yasutovich
- "inquiring (and nosey) minds WANT TO KNOW!!!"
- I can remember when "safe sex" meant having a padded headboard!!
- Tick Tock.....Tick Tock......Tick Tock .....Tick Tock......
-