home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.questions
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!uwm.edu!ux1.cso.uiuc.edu!news.cso.uiuc.edu!uxa.cso.uiuc.edu!hpcg9070
- From: hpcg9070@uxa.cso.uiuc.edu (H Prasad Cherukuri)
- Subject: a simple question about rm
- Message-ID: <C0DwyB.5Ht@news.cso.uiuc.edu>
- Sender: usenet@news.cso.uiuc.edu (Net Noise owner)
- Organization: University of Illinois at Urbana
- Distribution: usa
- Date: Tue, 5 Jan 1993 14:15:45 GMT
- Lines: 28
-
-
- 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
-