From owner-freebsd-questions@FreeBSD.ORG Sun May 6 01:09:59 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4DE4B16A402 for ; Sun, 6 May 2007 01:09:59 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from mxout4.cac.washington.edu (mxout4.cac.washington.edu [140.142.33.19]) by mx1.freebsd.org (Postfix) with ESMTP id 2C1F113C468 for ; Sun, 6 May 2007 01:09:59 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from smtp.washington.edu (smtp.washington.edu [140.142.33.9] (may be forged)) by mxout4.cac.washington.edu (8.13.7+UW06.06/8.13.7+UW07.03) with ESMTP id l4619wgv025027 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sat, 5 May 2007 18:09:58 -0700 X-Auth-Received: from [192.168.10.45] (c-67-187-164-17.hsd1.ca.comcast.net [67.187.164.17]) (authenticated authid=youshi10) by smtp.washington.edu (8.13.7+UW06.06/8.13.7+UW07.03) with ESMTP id l4619vRO015572 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sat, 5 May 2007 18:09:58 -0700 Message-ID: <463D2B0C.2030603@u.washington.edu> Date: Sat, 05 May 2007 18:10:36 -0700 From: Garrett Cooper User-Agent: Thunderbird 2.0.0.0 (Windows/20070326) MIME-Version: 1.0 To: freebsd-questions@freebsd.org, ray@stilltech.net References: <200705051705.43504.ray@stilltech.net> <20070506005530.GA5251@glitch.rwxrwxrwx.net> In-Reply-To: <20070506005530.GA5251@glitch.rwxrwxrwx.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-PMX-Version: 5.3.1.294258, Antispam-Engine: 2.5.1.298604, Antispam-Data: 2007.5.5.174933 X-Uwash-Spam: Gauge=IIIIIII, Probability=7%, Report='__CT 0, __CTE 0, __CT_TEXT_PLAIN 0, __HAS_MSGID 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __SANE_MSGID 0, __USER_AGENT 0' Cc: Subject: Re: disaster recovery - did I do the right thing? 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: Sun, 06 May 2007 01:09:59 -0000 Martin Tournoij wrote: > On Sat 05 May 2007 17:05, Ray wrote: >> Hello all, >> I did something stupid the other day (sleep deprivation combined with >> a "clever" hack were the main reasons), and I'm just curious if I did the >> right thing afterwards. >> >> The mistake: >> /usr/local/# rm -f * >> note that root was running bash as a shell at the time, found >> in /usr/local/bin or something. >> >> What I did was to start over, reinstall from scratch. >> my question, was there an easier way? >> thanks, >> Ray > > You can use pkg_info -ga to check for missing files in your packages. > For (t)csh: alias rm "rm -i" For (ba)sh: alias rm="rm -i" Now that you've learned :). Martin's suggestion is good though -- would have done that considering that all that lived in /usr/local were ports. -Garrett