Re: hard link questions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Jun 08, 2003 at 11:11:47AM -0700, Allen Curtis wrote:

> 1. Is there an easy way to determine if a file is actually a hard link?

http://perl.plover.com/Questions.html

:)

> (or locate files with multiple references?)

st_nlink > 1

(try stat on such a file :

[moz@lambent oprofile]$ stat b | grep Links
Device: 303h/771d       Inode: 230397      Links: 2

)


find . -links 2

or

find . -type f -links 2

gives inodes with exactly two links

regards
john
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux