[nmglug] hard,soft,link,inode
Casey Dentinger
dentinger at regnitned.net
Wed Oct 14 15:18:59 PDT 2020
Just read up and on most systems (though not strictly posix) find has a -samefile option for finding all the hard links.
On Wed, Oct 14, 2020, at 4:06 PM, Casey Dentinger wrote:
> When you ls -l
>
> -rw-r--r-- 1
>
> That number after the mode is the number of hard links. Hard links are
> all literally the file and share its attributes so I don't think one
> would be considered the original. As for sym links they are just files
> on disk that afaik the target knows nothing about.
>
> On Wed, Oct 14, 2020, at 3:56 PM, a wrote:
> > Hi
> >
> > If I have a file or directory and would like to now if it is the
> > original file or directory of a link can I confirm the fact by reading
> > an inode some where or some how?
> >
> > Thanks, a
> >
> > _______________________________________________
> > nmglug mailing list
> > nmglug at lists.nmglug.org
> > http://lists.nmglug.org/listinfo.cgi/nmglug-nmglug.org
> >
> _______________________________________________
> nmglug mailing list
> nmglug at lists.nmglug.org
> http://lists.nmglug.org/listinfo.cgi/nmglug-nmglug.org
>
More information about the nmglug
mailing list