Re: Deleting question

Dennis Clark (dennis@nospam.ilanet.slnsw.gov.au)
Tue, 4 Jun 1996 20:01:43 +1000 (EST)

In previous mail, Blue Mercedes wrote:
|
| On Tue, 4 Jun 1996, Danny Ng wrote:
|
| > How do I delete a directory and all it's content with the damn comp.
| > prompting me for every files and subdir???
|
| rm -rf directory_name
|
| Are you *sure* you want to do this? Also, I suspect you have rm aliased
| to rm -i..
|

I also have rm aliased to 'rm -i' myself (can be a lifesaver, along with
'cp -i' and 'mv -i'), but obviously its a pain in the backside when using
it with rm -rf.

The solution is to type:

\rm -rf directory_name

The backslash tells your shell (C-shell I presume?) to not use the
rm alias and instead call the rm program directly.

Cheers,

--------------------------------+-----------------------------------
Dennis Clark | Email: dennis@nospam.ilanet.slnsw.gov.au
Programmer, ILANET | Tel: +61 2 230 1649
State Library of NSW | Fax: +61 2 232 8701
"What a tangled WWW we weave!"