How to check Bitcoind block chain download progress level I have installed bitcoind on ubuntu server, and when I run screen -x for btc it says error -10 blockchain is downloading.

How do I know the progress level? currently 125600 blocks are downloaded, but how many blocks yet to go? where do i check the blockchain download progress level? does it has capability to resume if the server is powered off?
Do 

cd /home/


then

nano block.sh


copy the code below and paste (right click if you use putty) to the script.

#!/bin/bash
while true ; do
    clear
    echo "Press enter to break loop. Script will loop every 3 seconds"
    echo "script by Nixsy 18th august 2013"
    echo "If loop freezes press CTRL+C"
    echo ""
    echo -e "    \033[31mdownloaded\e[0m/\033[32mavailable\e[0m"
    echo -e "    \033[31m"`bitcoin-cli getblockcount 2&gt;&amp;1`"\e[0m"/"\033[32m"`wget -O - http://blockchain.info/q/getblockcount 2&gt;/dev/null`"\e[0m"
    read -t 3 -n 3 &amp;&amp; break
done


When you have copied the text to nano hold CTRL+X and then press Y to save.

In terminal type or copy from below followed by the enter key.

chmod +x block.sh


to start the script type.

./block.sh


This is just a little edit of the script from Lohoris, It will clear the screen then loop the script every 3 seconds until a key press.

Credit to Lohoris for the original script.