🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.shell
Article #4567

Re: du How does du work?

#4567
From: Cal Dunigan
Date: Mon, 11 Nov 1996 00:00
24 lines
2038 bytes
On 11 Nov 1996, Oka Setiawan wrote:

> In article <55u79a$n5o@gap.cco.caltech.edu>,
> lbliao <lbliao@alumnae.caltech.edu> 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.
> ---
> I have another intriguing fact/question about du.
> Why in one of my machine, du will show twice the disk usage than it should?
> In another machine (different file server and everything) du works fine.
> both running solaris. 
> That really freak me out.

Lots of possible reasons why, OS version, your path etc. One of them
is reporting the space in 1K bytes, the other as 512 byte blocks. 

\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
    Cal Dunigan                       My opinions *ARE* the company's
    cal@ccdi.com                      opinions.
    Consulting, Modeling, Training
//////////////////////////////////////////////////////////////////////
Technical Details
Message-ID: <Pine.GSO.3.95.961111103448.5787D-100000@goodguy>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <55u79a$n5o@gap.cco.caltech.edu> <567lav$sl5@news.tamu.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: 1025b4,8c44339d2a70be4e
X-Google-Attributes: gid1025b4,public
X-Google-Thread: 1012a6,8c44339d2a70be4e
X-Google-Attributes: gid1012a6,public
From: Cal Dunigan <cdi@goodnet.com>
Subject: Re: du How does du work?
Date: 1996/11/11
Message-ID: <Pine.GSO.3.95.961111103448.5787D-100000@goodguy>
X-Deja-AN: 196103698
references: <55u79a$n5o@gap.cco.caltech.edu> <567lav$sl5@news.tamu.edu>
x-sender: cdi@goodguy
content-type: TEXT/PLAIN; charset=US-ASCII
organization: GoodNet
mime-version: 1.0
newsgroups: comp.unix.shell,comp.unix.programmer,comp.unix.questions,comp.unix.misc,gnu.misc.discuss