From owner-freebsd-questions Mon Dec 10 9:11:18 2001 Delivered-To: freebsd-questions@freebsd.org Received: from etek.chalmers.se (quarl0.etek.chalmers.se [129.16.32.20]) by hub.freebsd.org (Postfix) with ESMTP id 0CB0F37B417 for ; Mon, 10 Dec 2001 09:11:15 -0800 (PST) Received: from downy.etek.chalmers.se (_7-268@downy.etek.chalmers.se [129.16.32.207]) by etek.chalmers.se (8.10.0/8.8.8) with ESMTP id fBAHBDM25899; Mon, 10 Dec 2001 18:11:13 +0100 (MET) Received: from localhost (b@localhost) by downy.etek.chalmers.se (8.10.0/8.10.0) with ESMTP id fBAHBDi20288; Mon, 10 Dec 2001 18:11:13 +0100 (MET) Date: Mon, 10 Dec 2001 18:11:12 +0100 (MET) From: Magnus B{ckstr|m To: Nils Holland Cc: freebsd-questions@freebsd.org Subject: Re: Understaning the files in /stand (a little long, sorry) In-Reply-To: <20011210174815.B1975@tisys.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Mon, 10 Dec 2001, Nils Holland wrote: > So, any idea how to undo this? I could probably rm -R /stand on the machine This should do the trick, but replace 1759284 by the correct size of your crunch binary: cd /stand ls -l | grep 1759284 | grep -v fsck | \ awk '{print "./" $9}' | xargs -n1 ln -f fsck (This lists all the files, greps out those that should be hard-linked together, removes one of them (fsck) from the list, then has xargs invoke ln -f to hard-link each of them to fsck. Simple as that:)) Magnus To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message