bug-findutils
[Top][All Lists]
Advanced

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

Re: find -links n


From: Bernhard Voelker
Subject: Re: find -links n
Date: Mon, 15 Jul 2013 10:03:24 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130329 Thunderbird/17.0.5

On 07/14/2013 12:19 PM, Günter Wallnig wrote:
> I believe to have found a mistake in "find" with the param "-links":
> 
> Apparently, only the second Column of the output of "ls" looks at what 
> is probably wrong with a directory!

If I understand correct, then you are saying that the second column of
the "ls"-formatted output shows a different number than the number you
have been searching for with "-links N", e.g.

  $ find -links 5 -ls
  17311045    4 drwxr-xr-x   5 berny    users        4096 Dec  9  2011 
./gnulib/.git/refs
  15481120    4 drwxr-xr-x   5 berny    users        4096 Dec  9  2011 
./.git/refs
  16913157    4 drwxr-xr-x   5 berny    users        4096 Mar 27 19:57 
./find/testsuite
  22825398   32 drwxr-xr-x   5 berny    users       32768 Mar 27 19:56 ./tests

This is the output format of "ls -dils" as mentioned in the manual.
The 2nd column isn't the number of links but instead the number of
1k-blocks used for this file/directory.  The number of links is in
column 4.

Have a nice day,
Berny



reply via email to

[Prev in Thread] Current Thread [Next in Thread]