Display disk usage in GB on Linux: use du -sh --block-size=1G . (GNU/Linux) or du -sg . (macOS/BSD). Simplest universal method: du -sh . auto-scales to GB. For scripts: set export BLOCKSIZE=1G. #Linux #CommandLine #DiskUsage
https://pupuweb.com/how-can-i-make-the-linux-du-command-report-disk-usage-in-gigabytes/