Contents
The data directory is the default location where the Bitcoin Core files are stored.
- The default data directory paths for supported platforms are:
| Platform | Data directory path |
|---|---|
| Linux | $HOME/.bitcoin/ |
| macOS | $HOME/Library/Application Support/Bitcoin/ |
| Windows | %LOCALAPPDATA%\Bitcoin\ [1] |
-
A custom data directory path can be specified with the
-datadiroption. -
All content of the data directory, except for
bitcoin.conffile, is chain-specific. This means the actual data directory paths for non-mainnet cases differ:
| Chain option | Data directory path |
|---|---|
-chain=main (default) |
path_to_datadir/ |
-chain=test or -testnet |
path_to_datadir/testnet3/ |
-chain=testnet4 or -testnet4 |
path_to_datadir/testnet4/ |
-chain=signet or -signet |
path_to_datadir/signet/ |
-chain=regtest or -regtest |
path_to_datadir/regtest/ |
| Subdirectory | File(s) | Description |
|---|---|---|
./ |
sv2-debug.log |
Contains debug information and general logging generated by sv2-tp; can be specified by the -debuglogfile option |
./ |
.lock |
Data directory lock file |
1. The / (slash, U+002F) is used as the platform-independent path component separator in this document.
2. NNNNN matches [0-9]{5} regex.
This table describes the files installed by Bitcoin Core across different platforms.
| Path | Description |
|---|---|
| README.md | Project information and instructions |
| sv2-tp.conf | Generated configuration file |
| test_sv2 | Unit test binary |
| share/man/man1/ | Man pages for command-line tools like sv2-tp |
- Italicized files are only installed in source builds if relevant CMake options are enabled. They are not included in binary releases.
- README and bitcoin.conf files are included in binary releases but not installed in source builds.
- On Windows, binaries have a
.exesuffix (e.g.,bitcoin-cli.exe).