bug-coreutils
[Top][All Lists]
Advanced

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

bug#47023: df utilility displays G instead of GM as unit size for Gigaby


From: Paul Eggert
Subject: 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
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1

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").





reply via email to

[Prev in Thread] Current Thread [Next in Thread]