<p>Do </p>

<pre><code>cd /home/
</code></pre>

<p>then</p>

<pre><code>nano block.sh
</code></pre>

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

<pre><code>#!/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
</code></pre>

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

<p>In terminal type or copy from below followed by the enter key.</p>

<pre><code>chmod +x block.sh
</code></pre>

<p>to start the script type.</p>

<pre><code>./block.sh
</code></pre>

<p>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.</p>

<p>Credit to Lohoris for the original script.</p>

CC BY-SA 3.0
2013-08-18T21:24:11.373Z
2015-06-07T05:02:42.000Z
2015-06-07T05:02:42.000Z
Nixsy
<p>As of 2019, you can use the following script</p>

<pre><code>echo `bitcoin-cli getblockcount 2&gt;&amp;1`/`wget -O - http://blockchain.info/q/getblockcount 2&gt;/dev/null`
</code></pre>

CC BY-SA 3.0
2017-04-22T15:03:58.773Z
Using Bitcoin Core Daemon v0.14.0
`Error: There is no RPC client functionality in bitcoind anymore. Use the bitcoin-cli utility instead./463021`

Simply replace "bitcoind" with "bitcoin-cli" to see progress.
Matt Jensen
CC BY-SA 4.0
2013-05-13T14:00:33.417Z
2019-09-09T09:30:43.730Z
2019-09-09T09:30:43.730Z
o0'.
<p>I just installed bitcoind on an RPi and wanted to do this exact thing. Thought I'd post what worked for me:</p>

<pre><code>$ bitcoin-cli getblockcount
7437
</code></pre>

<p>Block height is 366678 at the time of this post...long way to go</p>

CC BY-SA 3.0
2015-07-24T04:15:00.383Z
2015-07-24T04:15:00.383Z
Justin O'Brien
<p>I wanted a nicer output.</p>

<p>Based off @o0'. <a href="https://bitcoin.stackexchange.com/a/10871/34337">answer</a> ...</p>

<pre><code>BC_CURRENT=`./bitcoin-cli getblockcount 2&gt;&amp;1`; BC_HEIGHT=`wget -O - http://blockchain.info/q/getblockcount 2&gt;/dev/null`; perl -E "say sprintf('Block %s of %s (%.2f%%)', $BC_CURRENT, $BC_HEIGHT, ($BC_CURRENT/$BC_HEIGHT)*100)";
</code></pre>

<p>Outputs ...</p>

<pre><code>Block 360693 of 471139 (76.56%)
</code></pre>

CC BY-SA 3.0
2017-07-31T00:25:04.607Z
Nice! Love the output.
raid5ive
CC BY-SA 3.0
2017-06-13T20:16:37.630Z
2017-06-13T20:16:37.630Z
farinspace
<pre><code>tail -f .bitcoin/debug.log
</code></pre>

<p>You will see the progress % in the end of every line.</p>

<pre><code>2019-05-21T15:53:22Z UpdateTip: new best=00000000000007463022a75f47fbce4832d885cccfddc66b9ae6d332888f825d height=181720 version=0x00000001 log2_work=68.184645 tx=3482689 date='2012-05-26T22:08:18Z' progress=0.008422 cache=256.7MiB(1838887txo)
</code></pre>

<p>Here, in case you did not find it above:</p>

<pre><code>... progress=0.008422 ...
</code></pre>

CC BY-SA 4.0
2019-05-21T15:56:53.100Z
2019-05-21T15:56:53.100Z
Luciano Bargmann
<p>here a bash script for see the live progress</p>

<ul>
<li><p>create a file <code>nano [nom fichier]</code> and copy the code below</p></li>
<li><p>run script with <code>bash [nom fichier]</code></p></li>
<li><p>stop script by type on your keyboard</p></li>
</ul>

<p>Script :</p>

<pre><code>sleepTime=4 #set time between updates

blocksPris=$(bitcoin-cli getblockcount)
blocksTotal=$(wget -O - http://blockchain.info/q/getblockcount 2&gt;/dev/null)
pourcentage=$(((blocksPris*100)/blocksTotal))
input=""

tput smcup
clear
\e[25l ou tput civis
stty -echo
tput civis

while ["$input" -eq ""]
do
        echo -en "\e[1A\e[0K\r"

        echo "- $blocksPris/$blocksTotal - [$pourcentage%]"
        i=1
        echo -e "\e[47m \e[42m\c"
        while [ "$i" -lt "$pourcentage" ]
        do
                echo -e "_\c"
                i=$(( $i + 1))
        done
        echo -e "\e[41m\c"
        i=1
        while [ "$i" -lt "$((100-pourcentage))" ]
        do
                echo -e "_\c"
                i=$(( $i + 1))
        done
        echo -e "\e[47m \e[49m\c"

        sleep $sleepTime
        read -t 0.25 -N 1 input

        blocksPris=$(bitcoin-cli getblockcount)
        blocksTotal=$(wget -O - http://blockchain.info/q/getblockcount 2&gt;/dev/null)
        pourcentage=$(((blocksPris*100)/blocksTotal))
done

tput cnorm
stty echo
tput sgr0
tput rmcup
</code></pre>

<p>Result:
<a href="https://i.sstatic.net/mpqw5.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/mpqw5.png" alt="enter image description here"></a></p>

CC BY-SA 4.0
2020-12-17T04:00:24.227Z
Just wow! :-)))
Felipe
CC BY-SA 4.0
2020-03-22T13:30:58.617Z
2020-03-22T17:13:25.717Z
2020-03-22T17:13:25.717Z
Julien Four
<p>You can see the current total amount of blocks on public block chain browsers:</p>

<ul>
<li><a href="http://blockexplorer.com/q/getblockcount" rel="nofollow">http://blockexplorer.com/q/getblockcount</a></li>
<li><a href="http://blockchain.info/q/getblockcount" rel="nofollow">http://blockchain.info/q/getblockcount</a></li>
</ul>

CC BY-SA 3.0
2013-05-13T09:09:48.423Z
2013-05-13T09:09:48.423Z
Steven Roose
<p>If you have bitcoin cli installed. The below command will help.</p>

<pre><code>echo `bitcoin-cli getblockcount 2&gt;&amp;1`/`wget -O - http://blockchain.info/q/getblockcount 2&gt;/dev/null`
</code></pre>

<p>Sample output</p>

<blockquote>
  <p>365320/512421</p>
</blockquote>

<p>This is slight improvement of <a href="https://bitcoin.stackexchange.com/a/10871/34337">above answer</a>. But it returned <code>Error: Command line contains unexpected token 'getblockcount', see bitcoind -h for a list of options./512421
</code> in my case. Hope it helps someone.</p>

CC BY-SA 3.0
2018-03-07T12:01:45.733Z
2018-03-07T12:12:54.507Z
2018-03-07T12:12:54.507Z
SMJ
<p>The easiest way is to run birtcoind getinfo, then compare the nHeight to a block explorer, which should give you a ratio of how completed it is. Keep in mind that earlier blocks sync fastest, so 50% of black may not be 50% of the time required to sync.</p>

CC BY-SA 3.0
2015-06-07T07:50:49.430Z
2015-06-07T07:50:49.430Z
nuggetbram
<p>I have installed <code>bitcoind</code> on ubuntu server, and when I run <code>screen -x</code> for btc it says <code>error -10 blockchain is downloading</code>.</p>

<p>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?</p>

<blockchain><bitcoind><ubuntu>
How to check Bitcoind block chain download progress level
Stephen Paulraj
# How to check Bitcoind block chain download progress level

(Asked by: username_0 on 2013-05-13)

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?

**Tags:** blockchain, bitcoind, ubuntu


---

## 9 answers

### Answer by username_1 on 2013-08-18. Score: 14

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 username_1 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>&1`"\e[0m"/"\033[32m"`wget -O - http://blockchain.info/q/getblockcount 2>/dev/null`"\e[0m"
    read -t 3 -n 3 && 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.


---

### Answer by username_2 on 2013-05-13. Score: 8

As of 2019, you can use the following script

```
echo `bitcoin-cli getblockcount 2>&1`/`wget -O - http://blockchain.info/q/getblockcount 2>/dev/null`

```

> **Comments:**
> **username_3**: Using Bitcoin Core Daemon v0.14.0 `Error: There is no RPC client functionality in bitcoind anymore. Use the bitcoin-cli utility instead./463021`  Simply replace "bitcoind" with "bitcoin-cli" to see progress.  

---

### Answer by username_4 on 2015-07-24. Score: 6

I just installed bitcoind on an RPi and wanted to do this exact thing. Thought I'd post what worked for me:

```
$ bitcoin-cli getblockcount
7437

```

Block height is 366678 at the time of this post...long way to go


---

### Answer by username_5 on 2017-06-13. Score: 3

I wanted a nicer output.

Based off @o0'. [answer](https://bitcoin.stackexchange.com/a/10871/34337) ...

```
BC_CURRENT=`./bitcoin-cli getblockcount 2>&1`; BC_HEIGHT=`wget -O - http://blockchain.info/q/getblockcount 2>/dev/null`; perl -E "say sprintf('Block %s of %s (%.2f%%)', $BC_CURRENT, $BC_HEIGHT, ($BC_CURRENT/$BC_HEIGHT)*100)";

```

Outputs ...

```
Block 360693 of 471139 (76.56%)

```

> **Comments:**
> **username_6**: Nice! Love the output.  

---

### Answer by username_7 on 2019-05-21. Score: 3

```
tail -f .bitcoin/debug.log

```

You will see the progress % in the end of every line.

```
2019-05-21T15:53:22Z UpdateTip: new best=00000000000007463022a75f47fbce4832d885cccfddc66b9ae6d332888f825d height=181720 version=0x00000001 log2_work=68.184645 tx=3482689 date='2012-05-26T22:08:18Z' progress=0.008422 cache=256.7MiB(1838887txo)

```

Here, in case you did not find it above:

```
... progress=0.008422 ...

```


---

### Answer by username_8 on 2020-03-22. Score: 3

here a bash script for see the live progress

* create a file `nano [nom fichier]` and copy the code below
* run script with `bash [nom fichier]`
* stop script by type on your keyboard

Script :

```
sleepTime=4 #set time between updates

blocksPris=$(bitcoin-cli getblockcount)
blocksTotal=$(wget -O - http://blockchain.info/q/getblockcount 2>/dev/null)
pourcentage=$(((blocksPris*100)/blocksTotal))
input=""

tput smcup
clear
\e[25l ou tput civis
stty -echo
tput civis

while ["$input" -eq ""]
do
        echo -en "\e[1A\e[0K\r"

        echo "- $blocksPris/$blocksTotal - [$pourcentage%]"
        i=1
        echo -e "\e[47m \e[42m\c"
        while [ "$i" -lt "$pourcentage" ]
        do
                echo -e "_\c"
                i=$(( $i + 1))
        done
        echo -e "\e[41m\c"
        i=1
        while [ "$i" -lt "$((100-pourcentage))" ]
        do
                echo -e "_\c"
                i=$(( $i + 1))
        done
        echo -e "\e[47m \e[49m\c"

        sleep $sleepTime
        read -t 0.25 -N 1 input

        blocksPris=$(bitcoin-cli getblockcount)
        blocksTotal=$(wget -O - http://blockchain.info/q/getblockcount 2>/dev/null)
        pourcentage=$(((blocksPris*100)/blocksTotal))
done

tput cnorm
stty echo
tput sgr0
tput rmcup

```

Result:
[![enter image description here](https://i.sstatic.net/mpqw5.png)](https://i.sstatic.net/mpqw5.png)

> **Comments:**
> **username_9**: Just wow! :-)))  

---

### Answer by username_10 on 2013-05-13. Score: 2

You can see the current total amount of blocks on public block chain browsers:

* <http://blockexplorer.com/q/getblockcount>
* <http://blockchain.info/q/getblockcount>


---

### Answer by username_11 on 2018-03-07. Score: 2

If you have bitcoin cli installed. The below command will help.

```
echo `bitcoin-cli getblockcount 2>&1`/`wget -O - http://blockchain.info/q/getblockcount 2>/dev/null`

```

Sample output

> 365320/512421

This is slight improvement of [above answer](https://bitcoin.stackexchange.com/a/10871/34337). But it returned `Error: Command line contains unexpected token 'getblockcount', see bitcoind -h for a list of options./512421` in my case. Hope it helps someone.


---

### Answer by username_12 on 2015-06-07. Score: 1

The easiest way is to run birtcoind getinfo, then compare the nHeight to a block explorer, which should give you a ratio of how completed it is. Keep in mind that earlier blocks sync fastest, so 50% of black may not be 50% of the time required to sync.


---

