I was trying to interact with bitcoin network with JSON RPC commands, So I referred to the bitcoin wiki page https://en.bitcoin.it/wiki/API_reference_(JSON-RPC)#Java it shows to run the bitcoin using 'bitcoind -daemon' command. but another page of bitcoin wiki https://en.bitcoin.it/wiki/Running_Bitcoin suggest running the node using './bitcoind' command.so What is the difference between the two commands?


What is the difference between the two commands?

./bitcoind - runs bitcoin node in the foreground.

./bitcoind -daemon - runs bitcoin node as daemon.

What is daemon?

In multitasking computer operating systems, a daemon is a computer program that runs as a background process, rather than being under the direct control of an interactive user.

  • so the bitcoin -daemon command also download the blockchain data in the background, right? – Akshay Dev Sep 4 '18 at 7:20
  • bitcoin -daemon runs bitcoin node in the background. – Зелёный Sep 4 '18 at 7:20
  • @Akshay Operationally, the two are identical. The only difference is whether it runs in the background or not. – Pieter Wuille Sep 4 '18 at 17:36

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.