Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 8 Aug 2002 01:31:03 -0400 (EDT)
From:      Peter Leftwich <Hostmaster@Video2Video.Com>
To:        Ken McGlothlen <mcglk@artlogix.com>
Cc:        FreeBSD LIST <FreeBSD-Questions@FreeBSD.Org>
Subject:   less is more or less
Message-ID:  <20020808012821.T43398-100000@earl-grey.cloud9.net>
In-Reply-To: <86d6sujgwc.fsf@ralf.artlogix.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020808012821.T43398-100000>