On 09/01/2023 16:12, SCOTT FIELDS wrote:
Though not incredibly difficult to script, it would be useful to have 'du' allow a filter by 'user'.AKA, 'du -user <user> <path>' to show only the files and usage for the specified user.
du isn't special in its filtering requirements here, and we can pipe robustly from the standard file filter like: find -type f -user $USER -print0 | du --files0-from=- So I don't think this would be appropriate to add to du. cheers, Pádraig