Anything faster than 'du' ?
Bill Campbell
linux-sxs
Mon Jul 2 20:49:03 PDT 2007
On Mon, Jul 02, 2007, Michael Hipp wrote:
>Is there a faster way to determine the size of a deep directory of files
>rather than using 'du'? It (du) is really painful if there are lots of
>files or the medium is slow like USB?
Anything that has to scan an entire directory structure, and stat()
all the entries to get the sizes is going to take a fair amount
of time. I haven't looked at the code for ``du'', but I would
have to guess that it's pretty lean.
Bill
--
INTERNET: bill at Celestial.COM Bill Campbell; Celestial Software, LLC
UUCP: camco!bill PO Box 820; 6641 E. Mercer Way
FAX: (206) 232-9186 Mercer Island, WA 98040-0820; (206) 236-1676
URL: http://www.celestial.com/
``It is no crime to be ignorant of economics, which is, after all, a
specialized discipline and one that most people consider to be a 'dismal
science.' But it is totally irresponsible to have a loud and vociferous
opinion on economic subjects while remaining in this state of ignorance.''
-- Murray N. Rothbard
More information about the Linux-users
mailing list