I have created the data directory in /home/ubuntu/ethchain. Then I created two accounts in this directory using the command (ran the command twice) geth -datadir "/home/ubuntu/ethchain" -dev account new Then I run the following command geth -fast console -dev to start the geth instance. Then I run following command geth -datadir "/home/ubuntu/ethchain" -dev attach ipc:/tmp/ethereum_dev_mode/geth.ipc
Now when I run the above command, I expect that since I have mentioned the data directory, any account query which I run in the interactive javascript console,i.e.,eth.accounts should return me details of the accounts I have created in the directory /home/ubuntu/ethchain. But it returns me an empty list. So how do I change the default data directory? Is there any change in some config file?