coreutils
[Top][All Lists]
Advanced

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

Re: Possible enhancement: file count


From: Stephane Chazelas
Subject: Re: Possible enhancement: file count
Date: Wed, 2 Mar 2016 16:09:52 +0000
User-agent: Mutt/1.5.21 (2010-09-15)

2016-02-29 16:59:47 +0100, Ruediger Meier:
[...]
> What about "du --inodes"?  coreutils >= 8.22
[...]

Note that it counts the "inodes" which is different from
"directory entries".

For instance, in a directory that contains 100 entries all
hardlinks do the same file, du --inodes will report 2 (the
directory itself and the file).

Add the -l option to count directory entries (and get 101 in the
example above like for find|wc).

-- 
Stephane




reply via email to

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