[prev in list] [next in list] [prev in thread] [next in thread] 

List:       sun-managers
Subject:    SUMMARY:   hard links
From:       "Leonard, Roger" <Roger.Leonard () marconi ! com>
Date:       2001-01-31 18:15:18
[Download RAW message or body]

As most of you pointed out....

> is there anyway to tell who is hard linked to a file? the second column in
> an ls -al shows a 4 and i read the manpage to mean that there are 4 links
to
> a file.  doing an ls -ali would show duplicate inodes but what if the link
> is coming from another directory?  any help would be appreciated.

Summary:

find the inode number associated with the file (ls -li), then
find the mount point of the disk (df .), then run

find /mount-point -xdev -inum NNNNN -ls

thanks
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic