This works:
du -cshm .
But this fails:
du -cshg .
How can I see it in unit of GB?
|
feedback
|
|
GNU
As sajb noted, omitting the block size argument will automatically scale the output (and display the unit). Using any block size argument displays the number but omits the unit. | ||||
|
feedback
|
|
Use | |||
|
feedback
|
|
In addition to the previous answers, it also seems to differ between different coreutils versions (or locale?), since on my host I get:
| |||
|
feedback
|