Article View: comp.unix.shell
Article #4575Re: du How does du work?
From: Jim Kotan
Date: Fri, 08 Nov 1996 00:00
Date: Fri, 08 Nov 1996 00:00
34 lines
2302 bytes
2302 bytes
In article <55u79a$n5o@gap.cco.caltech.edu>, lbliao
(lbliao@alumnae.caltech.edu) blessed us with his opinion of the following..
>
>How does du work? How does it descend down the filesystem and get the name
>of each file? Is there a command that can recursively descend the file
system
>and give the name of the file to do something to? The other option of piping
>or storing may be RAM or harddisk intensive.
>
>thanks a lot!
>lbliao
>
du reads the file & directory entries then lists the size of each file
accordingly. If you wanted to get the summary (total) amount of space in
blocks used by a directory, you can use "du -s dirname". There is also the
command "find startingpoint -print -exec command {} \;" or
"find startingpoint | xargs command", to name just a few.
See man du or man find for more info
--
Jim Kotan
kotan_consulting@usa.net*
In an attempt to foil bulk-emailers, my "reply-to" address has been
altered.To reply to this message, remove the asterisk from the end
of my email address.
----- Disclaimer -----
All comments, statements, recommendations and/or opinions are mine
alone and not to be construed as being affiliated with any past,
present or future employers, employees, affiliates, associates,
associations, contractors, customers, magazines/newsletters I
do/have written for and/or anyone else in the universe, living or
dead, real or fictional.
Technical Details
Message-ID:
<55vuv7$o2b@lex.zippo.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<55u79a$n5o@gap.cco.caltech.edu>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f8c9b,8c44339d2a70be4e X-Google-Attributes: gidf8c9b,public X-Google-Thread: fc89c,8c44339d2a70be4e X-Google-Attributes: gidfc89c,public X-Google-Thread: f72b0,8c44339d2a70be4e X-Google-Attributes: gidf72b0,public X-Google-Thread: 1012a6,8c44339d2a70be4e X-Google-Attributes: gid1012a6,public X-Google-Thread: 1025b4,8c44339d2a70be4e X-Google-Attributes: gid1025b4,public From: kotan_consulting@usa.net* (Jim Kotan) Subject: Re: du How does du work? Date: 1996/11/08 Message-ID: <55vuv7$o2b@lex.zippo.com> X-Deja-AN: 195366098 references: <55u79a$n5o@gap.cco.caltech.edu> content-type: Text/Plain; charset=US-ASCII organization: Kotan Consulting Services mime-version: 1.0 newsgroups: comp.unix.shell,comp.unix.programmer,comp.unix.questions,comp.unix.misc,gnu.misc.discuss