From owner-freebsd-questions@FreeBSD.ORG Thu Jul 23 00:29:41 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 05B55106566B for ; Thu, 23 Jul 2009 00:29:41 +0000 (UTC) (envelope-from glen.j.barber@gmail.com) Received: from mail-bw0-f219.google.com (mail-bw0-f219.google.com [209.85.218.219]) by mx1.freebsd.org (Postfix) with ESMTP id 8317D8FC1D for ; Thu, 23 Jul 2009 00:29:40 +0000 (UTC) (envelope-from glen.j.barber@gmail.com) Received: by bwz19 with SMTP id 19so506488bwz.43 for ; Wed, 22 Jul 2009 17:29:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=Ywa561oY9yCti+9L13Ncyb3lC7Ld1Tz2UiGoQ7VVYYs=; b=QIoV3LlBrTnRrMQpN1es0jn0x595I2UNtjAI1Wzno0rnRxquChwrQlHOG8MUibnhAy mC717gpGi28afszh84qkb72e014EVGEjNn1d7vzvyPBMt3Khu8ifD8BIZgsPA/JCS9Iz VBTwxW+PJnQqsqUGLaTKIyZDDuzGwRz0+1xwI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=C0H0IsYc2ylWyARLnPHcGmuPIyOXkZkCsbBQh+wbe19eVYW1vqAUdl2caQi1ivzUWj diQvfdMZTchv3U2sX8kBqVDfU4/fG44fgzXmM01a0S8ZgdXRSGDzbF6z5ZwGnTYNsE6W P/aD+LVEXpck8qMdJkdaRbd2tVXZY30e6qcsA= MIME-Version: 1.0 Received: by 10.223.108.74 with SMTP id e10mr818658fap.35.1248308979338; Wed, 22 Jul 2009 17:29:39 -0700 (PDT) In-Reply-To: <4A67AC39.2060805@gmail.com> References: <4A67AC39.2060805@gmail.com> Date: Wed, 22 Jul 2009 20:29:39 -0400 Message-ID: <4ad871310907221729i2e51429dy25c41ec44c9ef84f@mail.gmail.com> From: Glen Barber To: jimmiejaz@gmail.com Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-questions@freebsd.org Subject: Re: rm -rf and fat fingers X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Jul 2009 00:29:41 -0000 On Wed, Jul 22, 2009 at 8:18 PM, Jimmie James wrote: > So here I was, half asleep, removing some old directories as root, and > here's what I did...sitting in /home/jimmie after su > > jimmie@jimmiejaz <101> [0] /home/jimmie#rm -rf cd /usr/local/lib =A0 (not= e the > space, the PWD is home/jimmie/) > > Now, a lot of libs went missing from /usr/local/lib. With libchk, last > locatedb I've been able to reinstall most of the libs. > My ~/ *seems* unaffected, but I'm worried about that, I don't notice > anything missing, but I could be wrong. > > What I'm thinking is the rm -rf found no 'cd' and moved to wipe out > /usr/local/lib =A0Would this be a correct assumption? > Yes, this is correct. Similarly, if you were to: rm -rf .mozilla /usr/local/lib It would remove your $HOME/.mozilla (assuming you were in $HOME) as well as /usr/local/llib. Your $HOME directory *should* be fine. Unless you had a 'cd' directory, of course. ;) --=20 Glen Barber