[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: lokking for portable way to determine the size of harddisks



On Wed, Mar 07, 2001 at 09:20:38PM -0600, Taral wrote:
> On Thu, Mar 08, 2001 at 12:47:58AM +0100, Jorgen Schaefer wrote:
> > That's Not A Bug, That's A Feature :)
> > 
> > You should set the POSIXLY_CORRECT environment variable, if you
> > want GNU tools to be (more) POSIX compliant:

Thanks, Jorgen!

> Doesn't work with df:
> 
> % POSIXLY_CORRECT=1 df /
> Filesystem          512-blocks      Used Available Use% Mounted on
> /dev/ide/host0/bus0/target0/lun0/part1
>                       11534856   1223176   9725736  12% /
> 
> % df -P /
> Filesystem         1024-blocks      Used Available Capacity Mounted on
> /dev/ide/host0/bus0/target0/lun0/part1   5767428    611588   4862868      12% /

You might need both, POSIXLY_CORRECT and -P.

Thanks,
Marcus



-- 
`Rhubarb is no Egyptian god.' Debian http://www.debian.org brinkmd@debian.org
Marcus Brinkmann              GNU    http://www.gnu.org    marcus@gnu.org
Marcus.Brinkmann@ruhr-uni-bochum.de
http://www.marcus-brinkmann.de



Reply to: