Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • I wish BSD du had --files0-from=, but unfortunately this only works with gnu du Commented Jun 21, 2022 at 23:55
  • Or in two lines without brackets nor back slashes: find ROOT_FOLDER -name "PATTERN*" -print0 > files followed by du -hsc --files0-from=files | tail -1 Commented May 30, 2024 at 10:09
  • You may prefer find /path -print0 | du --files0-from=- to read directly from stdin. Commented Oct 3 at 3:36