From owner-freebsd-questions@freebsd.org Mon Jul 2 00:36:16 2018 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 70516FF3770 for ; Mon, 2 Jul 2018 00:36:16 +0000 (UTC) (envelope-from roberthuff@rcn.com) Received: from smtp.rcn.com (smtp.rcn.com [69.168.97.78]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 0C1EB86743 for ; Mon, 2 Jul 2018 00:36:15 +0000 (UTC) (envelope-from roberthuff@rcn.com) X_CMAE_Category: , , X-CNFS-Analysis: v=2.2 cv=QLkqfUDL c=1 sm=1 tr=0 a=9TgA2UwI6Wy+6BV4wQM/cQ==:117 a=9TgA2UwI6Wy+6BV4wQM/cQ==:17 a=KGjhK52YXX0A:10 a=kj9zAlcOel0A:10 a=XRQyMpdBKAEA:10 a=R9QF1RCXAYgA:10 a=48faUk6PgeAA:10 a=1Vm1Oic_twCDeIp5rJwA:9 a=CjuIK1q_8ugA:10 X-CM-Score: 0 X-Scanned-by: Cloudmark Authority Engine X-Authed-Username: cm9iZXJ0aHVmZkByY24uY29t Authentication-Results: smtp03.rcn.cmh.synacor.com smtp.mail=roberthuff@rcn.com; spf=softfail; sender-id=softfail Authentication-Results: smtp03.rcn.cmh.synacor.com header.from=roberthuff@rcn.com; sender-id=softfail Authentication-Results: smtp03.rcn.cmh.synacor.com smtp.user=roberthuff; auth=pass (PLAIN) Received-SPF: softfail (smtp03.rcn.cmh.synacor.com: transitional domain rcn.com does not designate 209.6.230.48 as permitted sender) Received: from [209.6.230.48] ([209.6.230.48:18660] helo=jerusalem.litteratus.org.litteratus.org) by smtp.rcn.com (envelope-from ) (ecelerity 3.6.25.56547 r(Core:3.6.25.0)) with ESMTPSA (cipher=AES256-GCM-SHA384) id D4/24-17136-8CE693B5; Sun, 01 Jul 2018 20:16:09 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <23353.28358.988726.284851@jerusalem.litteratus.org> Date: Sun, 1 Jul 2018 20:16:06 -0400 From: Robert Huff To: "John R. Levine" Cc: "Paul Schmehl" , freebsd-questions@freebsd.org Subject: Re: Problem deleting files In-Reply-To: References: <20180701202153.A94AA28BD3C2@ary.local> <010DDED160955AC68C7EFA46@Pauls-MacBook-Pro.local> X-Mailer: VM 8.2.0b under 26.1 (amd64-portbld-freebsd12.0) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Jul 2018 00:36:16 -0000 John R. Levine writes: > > # rm -fr . > > rm: "." and ".." may not be removed > > Oh, ok, then go one level up. If your directory is callled abc > > $ rm -rf abc > > the -r recursor uses a library that can handle arbitrarily large sets of > files. Warning: it has been my (painful) experience that - depending on how you have things set up - deleting the current working directory can have unintended consequances. Respectfully, Robert Huff