I just googled again for a Gigabyte to Blocks converter when I stumbled upon this: 1 echo "(15*1024*1024*1024)/512" | bc Easy to use and yet handy.