From owner-freebsd-questions Wed Aug 7 22:31: 7 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D304137B400 for ; Wed, 7 Aug 2002 22:31:04 -0700 (PDT) Received: from russian-caravan.cloud9.net (russian-caravan.cloud9.net [168.100.1.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7E92343E3B for ; Wed, 7 Aug 2002 22:31:04 -0700 (PDT) (envelope-from Hostmaster@Video2Video.Com) Received: from earl-grey.cloud9.net (earl-grey.cloud9.net [168.100.1.1]) by russian-caravan.cloud9.net (Postfix) with ESMTP id E084A29049; Thu, 8 Aug 2002 01:31:03 -0400 (EDT) Date: Thu, 8 Aug 2002 01:31:03 -0400 (EDT) From: Peter Leftwich X-X-Sender: To: Ken McGlothlen Cc: FreeBSD LIST Subject: less is more or less In-Reply-To: <86d6sujgwc.fsf@ralf.artlogix.com> Message-ID: <20020808012821.T43398-100000@earl-grey.cloud9.net> Organization: Video2Video Services - http://Www.Video2Video.Com 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 7 Aug 2002, Ken McGlothlen wrote: > | > happy-idiot-talk:~:% ls -lai /usr/bin/{more,less} > | > 8199 -r-xr-xr-x 2 root wheel 85844 Aug 3 17:16 /usr/bin/less* > | > 8199 -r-xr-xr-x 2 root wheel 85844 Aug 3 17:16 /usr/bin/more* > | Sunuvva gun, that's cool - I wonder why they waste 85k of space instead of just having a symlink ;-) not that a user can't do that themselves... > They don't waste 85K. The files are identical. ls -i shows the inode number; that's the first column. The third column is "number of hard links that point to this inode." So there are only two different directory entries that point to the same file. Hard links are faster to resolve than symbolic links, and work just fine as long as all the directory entries are on the same filesystem. I didn't realize FreeBSD'ers preferred it hard ;) but now I see the point, er, your tip. ;) That's odd, `ls -alh` does "human output" in 4.6, but 4.5 doesn't [yet]. -- Peter Leftwich President & Founder Video2Video Services Box 13692, La Jolla, CA, 92039 USA +1-413-403-9555 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message