Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Discussion options

Is there a way to print the grand-total, like du -c * does? I would like to do a pdu -sch *, so that it prints the size of each directory, followed by a grand-total at the end. If not, then can this feature be added?
Patrick

You must be logged in to vote

Replies: 2 comments · 8 replies

Comment options

Try the following:

pdu --max-depth=1 *
pdu --max-depth=2 *

If you are still not satisfied, please let me know the difference.

You must be logged in to vote
2 replies
@mcguirepatr
Comment options

I tried both of those, and neither of them prints a grand total at the end.
Patrick

@KSXGitHub
Comment options

What do you mean? pdu always print a tree structure. The root of this tree should be equal to grand total.

Comment options

Maybe I am not using your pdu. I am using a pdu from PURE Storage in May 2018.
Patrick

You must be logged in to vote
6 replies
@mcguirepatr
Comment options

yes, the output is certainly different from what you show.
I don't know much about the pdu from PURE storage, except that the man page says May 2018.
Patrick

@KSXGitHub
Comment options

Did you install that pdu from a Linux distro? What distro is it? (Just curious)

BTW, my pdu stands for "parallel-disk-usage". And I guess that pdu stands for "PURE's Disk Usage"?

@mcguirepatr
Comment options

The PURE Storage stuff was already installed on the computer that I am using.

I think the p in pdu might stand for parallelizable. There are a bunch of PURE Storage commands available, like pls, which has the man page title pls - Utility to parallelize an ls call to an NFS server, and for pdu the page title is pdu - Utility to parallelize a du call to an NFS server. Some of the other PURE Storage commands are pchmod, pchown, pfind, and prm. I just found out about the PURE Storage pdu today, and I do like it better than du.
Patrick

@KSXGitHub
Comment options

I searched "pdu - Utility to parallelize a du call to an NFS server" on Google and found no relevant result, lol. Anyway, I hope you can find the right issue tracker soon.

@mcguirepatr
Comment options

I just searched for "pure storage pdu" on Google, and this was one of the hits:
https://support.purestorage.com/Solutions/Linux/Linux_Reference/RapidFileToolkit
Patrick

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
💡
Ideas
Labels
wontfix This will not be worked on
2 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.