Re: hard link identification

2012-05-23 Thread Devin Teske
On May 22, 2012, at 2:26 PM, Robert Bonomi wrote: dte...@freebsd.org wrote; For directories, the link-count is quite obviously the number of filesystem entities contained within. That is *INCORRECT*. Details. The OP wanted to know about files. I chose to not elaborate on the

Re: hard link identification

2012-05-23 Thread Robert Bonomi
Devin Teske devin.te...@fisglobal.com wrote: On May 22, 2012, at 2:26 PM, Robert Bonomi wrote: dte...@freebsd.org wrote; For directories, the link-count is quite obviously the number of filesystem entities contained within. That is *INCORRECT*. Details. The OP wanted to know

hard link identification

2012-05-22 Thread Gary Aitken
Is there any way to tell if something is a hard link, other than ls -i of relevant files and seeing that the inode is the same? or a better way? I was a bit confused when looking at /root/.cshrc and then discovering a .cshrc in / as well. Thanks, Gary

Re: hard link identification

2012-05-22 Thread Eitan Adler
On 22 May 2012 13:06, Gary Aitken free...@dreamchaser.org wrote: Is there any way to tell if something is a hard link, other than  ls -i of relevant files and seeing that the inode is the same? or a better way? Hard links are not special. You can't tell something is a hard link because normal

RE: hard link identification

2012-05-22 Thread dteske
-Original Message- From: owner-freebsd-questi...@freebsd.org [mailto:owner-freebsd- questi...@freebsd.org] On Behalf Of Gary Aitken Sent: Tuesday, May 22, 2012 1:06 PM To: freebsd-questions@freebsd.org Subject: hard link identification Is there any way to tell if something

RE: hard link identification

2012-05-22 Thread Robert Bonomi
dte...@freebsd.org wrote; For directories, the link-count is quite obviously the number of filesystem entities contained within. That is *INCORRECT*. The link-count on a directory is the number of dir- ectory entries (file names) tht resolve to it, just as with any other file. The count