🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.shell
Article #4571

Re: duHow does du work?

#4571
From: Patrick VUICHARD
Date: Fri, 08 Nov 1996 00:00
21 lines
2078 bytes
lbliao wrote:
> 
> 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.

As all other Unix commands, du is coded is C. I suppose that it calls
recursively the directory(3C) or getdents(2) functions...

-- 

===============================================================================
| _____             __                       | "If Buddha had intented men to |
|   )  /    __     /  ) __   __   _  _   __  | understand women,  He wouldn't |
|  /  /_   /(_)   / _  /  ) /  ) / )/ ) /(_) | have given us aspirin."        |
| /  /  ( (___   (__) /  ( (__/ /  ' ( (___  |                     Confucius. |
|____________________________________________|________________________________|
|     Patrick.Vuichard@vz.cit.alcatel.fr     |  Patrick.Vuichard@wanadoo.fr   |
===============================================================================
Technical Details
Message-ID: <3282FFAB.7228@vz.cit.alcatel.fr>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <55u79a$n5o@gap.cco.caltech.edu>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f8c9b,e48bd88ce44d9867,start
X-Google-Attributes: gidf8c9b,public
X-Google-Thread: fc89c,e48bd88ce44d9867,start
X-Google-Attributes: gidfc89c,public
X-Google-Thread: f72b0,e48bd88ce44d9867,start
X-Google-Attributes: gidf72b0,public
X-Google-Thread: 1025b4,e48bd88ce44d9867,start
X-Google-Attributes: gid1025b4,public
X-Google-Thread: 1012a6,e48bd88ce44d9867,start
X-Google-Attributes: gid1012a6,public
From: Patrick VUICHARD <Patrick.Vuichard@vz.cit.alcatel.fr>
Subject: Re: duHow does du work?
Date: 1996/11/08
Message-ID: <3282FFAB.7228@vz.cit.alcatel.fr>
X-Deja-AN: 195253737
references: <55u79a$n5o@gap.cco.caltech.edu>
to: lbliao <lbliao@alumnae.caltech.edu>
content-type: text/plain; charset=us-ascii
organization: Alcatel CIT
mime-version: 1.0
newsgroups: comp.unix.shell,comp.unix.programmer,comp.unix.questions,comp.unix.misc,gnu.misc.discuss
x-mailer: Mozilla 2.0 (X11; I; SunOS 5.4 sun4m)