8

I'm a Linux newbie and I don't know where monerod is storing the blockchain.

1 Answer 1

11

The blockchain is stored in $HOME/.bitmonero

For testnet, it'll be in $HOME/.bitmonero/testnet

You can select a different directory with the --data-dir option if needed, eg:

./monerod --data-dir /var/tmp/monero

3
  • 1
    $HOME/.bitmonero is another way of writing: /home/yourUserName/.bitmonero Note that the period in front of bitmonero means that it is a hidden directory. If you're in the terminal, type this to see all directories, including the hidden ones: ls -lha The actual database is: $HOME/.bitmonero/lmdb/data.mdb Commented Feb 28, 2017 at 20:48
  • Is there an environmental variable that can also set the --data-dir if --data-dir is not passed?
    – skaht
    Commented Feb 28, 2017 at 22:52
  • If you mean setting an environment variable, and have the code use this instead of --data-dir, then no.
    – user36303
    Commented Mar 1, 2017 at 9:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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