Re: hard link questions

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

 



Just to stay on topic.

mkdir accepts a pathname, and a mode. my mode is always 511.
any idea what 511 means?

Eugene

<quote sender="John Levon">
> 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/
> 

-- 
Eugene TEO @ Linux Users Group, Singapore <eugeneteo@lugs.org.sg>
GPG FP: D851 4574 E357 469C D308  A01E 7321 A38A 14A0 DDE5 
main(i){putchar(182623909>>(i-1)*5&31|!!(i<7)<<6)&&main(++i);}

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