How do I save changes in the apache2.conf file?
I'm having trouble figuring out how to save changes inside files opened in the terminal.
Specifically, I am trying to add "ServerName localhost" to my apache2.conf file, but I don't know how to save things in the terminal.
I found a solution on this site that said to hit escape then type :wq then hit enter, but that did not work. It gave me an error message that said the command was not recognized, and my wq showed up as text in the file alongside "localhost" indicating that it was not actually executing it as a command.
Anything I am missing here? Thanks for any help! I am using Linux for the first time to make a website using html/css/php/sql/java for my senior project (I am in highschool) so any bit of information would be much appreciated!