coreutils
[Top][All Lists]
Advanced

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

Re: Feature Request: du command - add option to report only on file obje


From: Eric Blake
Subject: Re: Feature Request: du command - add option to report only on file objects owned by user/group
Date: Thu, 13 Apr 2017 08:05:14 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0

On 04/13/2017 07:54 AM, Scott L Fields wrote:
> I'm looking for a convenient way to see the total space a given user 
> and/or group is using in a directory path.
> 
> Currently, this can be achieved by options like "find <fsname> -user 
> <user> -print0 | du --from0-files=1", but is not all that efficient for 
> very large listings.

Why not? It's exactly two processes running, and nicely combines the
existing behavior of two tools each doing one thing well (find doing the
filtering, du doing the summing on the list).

> 
> I would like to request an option in "du" to allow only file objects owned 
> by a specific user and/or group be shown.

I don't see how this would be any more efficient than the find|du
invocation you are already using.

-- 
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3266
Virtualization:  qemu.org | libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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