Home Messages Index
[Date Prev][Date Next][Thread Prev][Thread Next]
Author IndexDate IndexThread Index

Re: Linux command to delete all index.htm file

  • Subject: Re: Linux command to delete all index.htm file
  • From: Roy Schestowitz <newsgroups@schestowitz.com>
  • Date: Sat, 16 Apr 2005 11:42:07 +0100
  • Newsgroups: alt.www.webmaster
  • References: <1113553287.779133.120210@f14g2000cwb.googlegroups.com> <d3nupn$2mar$1@godfrey.mcc.ac.uk> <pan.2005.04.15.18.14.59.860190@tobyinkster.co.uk>
  • User-agent: KNode/0.7.2
Toby Inkster wrote:

> Roy Schestowitz wrote:
> 
>> -r will not decent to higher-level (parent) diretories

Dammit, typo... "descent".

> Oh yes it will!
> 
> Long time ago, I wanted to delete all the hidden files in a directory, so
> ran:
> 
> rm -rf .*
> 
> Ouch!
> 
> (Hint: the ".*" pattern matches "..".)

Ouch indeed. I hope you had backups. I usually try rm -r before I try -rf. I
want to see the warnings before I discard them. If they did not serve a
purpose, -f would have been assumed.

Roy

-- 
Roy S. Schestowitz
http://Schestowitz.com

[Date Prev][Date Next][Thread Prev][Thread Next]
Author IndexDate IndexThread Index