From owner-freebsd-current Thu May 24 2:43:24 2001 Delivered-To: freebsd-current@freebsd.org Received: from cartman.techsupport.co.uk (cabletel1.cableol.net [194.168.3.4]) by hub.freebsd.org (Postfix) with ESMTP id 3D16037B423 for ; Thu, 24 May 2001 02:43:22 -0700 (PDT) (envelope-from ceri@techsupport.co.uk) Received: from ceri by cartman.techsupport.co.uk with local (Exim 3.22 #2) id 152rgP-00037L-00; Thu, 24 May 2001 10:45:29 +0100 Date: Thu, 24 May 2001 10:45:29 +0100 From: Ceri To: Joerg Wunsch Cc: freebsd-current@freebsd.org Subject: Re: rm -rf question Message-ID: <20010524104529.B2716@cartman.techsupport.co.uk> References: <5.1.0.14.2.20010523054956.00a98f90@208.141.46.12> <20010523060549.Z19376@casimir.physics.purdue.edu> <20010523130807.A19223@zerogravity.kawo2.rwth-aachen.d> <200105240840.f4O8ekT07049@uriah.heep.sax.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200105240840.f4O8ekT07049@uriah.heep.sax.de>; from j@uriah.heep.sax.de on Thu, May 24, 2001 at 10:40:46AM +0200 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Thu, May 24, 2001 at 10:40:46AM +0200, J Wunsch said: > Alexander Langer wrote: > > > ls | xargs rm -rf > > rm -rf /home/gary/public_html/mrtg/david If you're running as root, neither of those do the same thing as rm -rf /home/gary/public_html/mrtg/david/* What if that directory also has a few file called .dont_delete in it ? You both just deleted it (note disclaimer about running as root for the first one - the ls -A alias being the reason). Ceri -- Your local RFC Nazi To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message