From owner-freebsd-current@FreeBSD.ORG Sun Oct 19 02:21:23 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3B4D316A4B3 for ; Sun, 19 Oct 2003 02:21:23 -0700 (PDT) Received: from smtp012.mail.yahoo.com (smtp012.mail.yahoo.com [216.136.173.32]) by mx1.FreeBSD.org (Postfix) with SMTP id 9B78E43FA3 for ; Sun, 19 Oct 2003 02:21:22 -0700 (PDT) (envelope-from q_dolan@yahoo.com.au) Received: from q.onthenet.com.au (HELO ?192.168.100.154?) (q?dolan@203.10.89.214 with plain) by smtp.mail.vip.sc5.yahoo.com with SMTP; 19 Oct 2003 09:21:21 -0000 From: Q To: "Bjoern A. Zeeb" In-Reply-To: References: Message-Id: <1066555252.77544.12.camel@boxster.onthenet.com.au> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5 Date: Sun, 19 Oct 2003 19:20:53 +1000 Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.1 cc: current@freebsd.org Subject: Re: binaries installed mult. times / no symlinks ? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 19 Oct 2003 09:21:23 -0000 If you had checked the link count you would have seen that the binaries you mentioned are actually not installed multiple times, but are "hard linked" under multiple names, and therefore only take up the space of a single instance of the file. If these binary files are located on the same filesystem it is preferable to hardlink rather than symlink them. I'm not sure if you noticed, but deleting a file with a link count greater than one will not free up any space, so deleting them is fruitless unless to plan to delete all of the references. If you want something really small, check out the picobsd project on the freebsd website. Seeya...Q On Sun, 2003-10-19 at 18:52, Bjoern A. Zeeb wrote: > Hi, > > I had been going through /usr/bin to see what I would need for a very > small installation and noticed that there are binaries > installed multiple times with different names of course. > > My question now would be if symlinking wouldn't suffice ? From those > that I had not deleted I remember the following duplicates that most > likely are not all of those exist... > > Mail -> mail > Mail -> mailx > less -> more > awk -> nawk > nvi -> nview > cksum -> sum > reset -> tset > nvi -> vi > nvi -> view