How to create config files

Im trying to create a config file in UBuntu 15.10 VPS by doing this:

sudo nano $HOME/.yourcoin/yourcoin.conf

But when I try to exit and save it says error writing no such file or directory. I also tried mkdir but can't do it. I want to create this config file.

1

1 Answer

To clarify, you are trying to create a root access file (because you are using sudo), inside a hidden directory under $HOME. Also, the directory may not exist yet, so first try:

cd ~/.yourcoin

If it fails, it is likely that the directory does not exist, so then try:

mkdir ~/.yourcoin

Once you are sure the directory is there, then try:

sudo nano ~/.yourcoin/yourcoin.conf

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like