GNU bug report logs - #47023
df utilility displays G instead of GM as unit size for Gigabytes in power of 1000

Previous Next

Package: coreutils;

Reported by: Philippe Bénézech <philippe.benezech <at> laposte.net>

Date: Tue, 9 Mar 2021 16:07:02 UTC

Severity: wishlist

Tags: wontfix

Merged with 18119

Done: Assaf Gordon <assafgordon <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


Message #13 received at 47023 <at> debbugs.gnu.org (full text, mbox):

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Philippe Bénézech <philippe.benezech <at> laposte.net>,
 47023 <at> debbugs.gnu.org
Subject: Re: bug#47023: df utilility displays G instead of GM as unit size for
 Gigabytes in power of 1000
Date: Tue, 9 Mar 2021 12:35:59 -0800
On 3/9/21 4:58 AM, Philippe Bénézech via GNU coreutils Bug Reports wrote:
> 
> df displays G instead of GM as unit size for Gigabytes in power of 1000 
> (but the value is correct)
> 
> $ df -BGB /home
> Sys. de fichiers blocs de 1GB Utilisé Disponible Uti% Monté sur
> /dev/mapper/ssd2        421GB   355GB       45GB  89% /home
> 
> $ df -H /home
> Sys. de fichiers Taille Utilisé Dispo Uti% Monté sur
> /dev/mapper/ssd2   421G    355G   45G  89% /home

I don't see a bug here. First, I assume you meant to write "GB" rather 
than "GM". Second, "df -BGB" is documented to append units (in this 
case, "GB") to the output number, whereas "df -H" is merely documented 
to append a size indication (in this case, "G").




This bug report was last modified 4 years and 155 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.