RE: hard link questions

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

 



The problem is the inconsistency between programs that will and will not
follow symbolic links. Then me, the user, is forced to use hard links to get
things to work. Since hard links look like real files, unlike symbolic
links, they are harder to keep track of and thus manage.

Thanks for the info though...

> > 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