使用Truffle+Ganache开发:Ubuntu下以太坊区块链存储位置咨询
Ganache 1.0.1 Data Storage Path on Ubuntu 17.10 64-bit
Hey there! Since you're using the desktop version of Ganache 1.0.1 alongside Truffle on Ubuntu 17.10, let's break down where your test blockchain data lives and how accessible it is:
Storage Location
Ganache (as an Electron-based desktop app) stores its blockchain data in a hidden user-specific directory. You can find it at:
~/.config/Ganache
Inside this folder, you'll see subdirectories corresponding to each Ganache workspace you've created. Each workspace's folder contains the LevelDB files that hold the full state of your test blockchain—accounts, transactions, contracts, and all other chain-related data.
Accessibility & Checking Disk Usage
- Full Access: This path is completely within your Ubuntu system's accessible area. It's located in your user's home directory, so you have full read/write permissions (no root access required). To view hidden folders in the file manager, press
Ctrl+Hto toggle visibility. - Check Disk Usage: To quickly see how much space your Ganache data is taking up, open a terminal and run:
If you want to check the size of a specific workspace, navigate to its subfolder first or modify the command to target that directory directly.du -sh ~/.config/Ganache
内容的提问来源于stack exchange,提问作者Zackorrigan




