Unable to Save and close my wordpress php file on my console
I am trying to install wordpress and I've gotten to the point in step three of the tutorial "How To Install Wordpress on Ubuntu 14.04" where I used the command: nano wp-config.php to open the text file and edit the 'DBName', 'DBUser' and 'DB_Password'. But now it isn't letting me save and close the php file so I can continue onto the next step of the tutorial. I've tried several commands and nothing seems to work. I just need to know what I'm doing wrong or what I'm not doing so I can continue to get wordpress installed.
Any help would be fantastic, thanks so much!