Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Fastest way to count # of files?
- X-seq: zsh-users 21860
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: Re: Fastest way to count # of files?
- Date: Fri, 9 Sep 2016 09:31:45 -0700
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:comments:references:to:subject :mime-version; bh=edB9vpCi27drPYOs8U2nk5K/H0n8BVE+jED8AdKAczY=; b=uEsoROudm29h8btA+i8N4SsDKLubTulAxN4AC34WZrrUWO98V/0RQrVS3Arx72Dw7k hnvSngNmhrWo66x1K5L+gJ1xpTiYAB6hdDiGZKURpvnC0eZaFIAoYAnxRkWZfaiXFJqu MAUMGVLpwiofuDmO6X6U53LSd1D7iHgp0enXz1AUyA2e7tNXNIRC+j1xmKxFj38vGC9x p3mSEt89g2qYzbcVEk0EEvmE/JO54uahKuMxsYwhbPLIYrKJAnLnMKMYcNATlihS/b89 GVatEne1Z5VJKN4eKSWu8ibdMrp+Csk3GmsGU3GcrMKiwLMnad1R8wkZ6HlUQlSrneQ7 AIxg==
- In-reply-to: <20160909053609.GA7401@fujitsu.shahaf.local2>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <CAKc7PVApZGBAoQ4GywTLzbJXmNOrq2-W_iP7p+ifWqzYF49N+g@mail.gmail.com> <160908090800.ZM13466@torch.brasslantern.com> <CAKc7PVBE4tzYqdUXqZ8KpgFPq45Kx2z56_vMnST9oLsOH+YcEQ@mail.gmail.com> <CAH+w=7ZZzfF8t0Fho1pvUCMzQJuHDoVS=S3Mox7gpx08YyNhJQ@mail.gmail.com> <160908180958.ZM14692__14483.1264777624$1473385001$gmane$org@torch.brasslantern.com> <20160909053609.GA7401@fujitsu.shahaf.local2>
On Sep 9, 5:36am, Daniel Shahaf wrote:
}
} nlink for a directory $d is usually the two plus number of subdirectories
Yes, this is definitely true on traditional filesystems (which I admit
I'd forgotten) and Linux ext*, but some testing on MacOS for example
(which is the only thing I tried before posting) shows counts in nlink
that include all the files, not just the subdirectories.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author