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

Re: OT - Convert output of byte count to GB count?



Bob Proulx a écrit :
> Pascal Hambourg wrote:
>> Bob Proulx a écrit :
>>>   $ perl -le 'print 5605687296 / (1024*1024*1024)'
>> Note that 1 GB (gigabyte) is 10^9 bytes as can be seen in the GNU dd
>> output. 1024^3 is 1 GiB (gibibyte).

> For me I prefer binary powers of two
> when using it in relation to computer tasks.

This is perfectly fine. But you proposed this command to mimic the
output of GNU dd, which uses SI prefixes (powers of 10).


Reply to: