How do I save and quit after making changes in a config file? I was told to type out the command :wq but I do not know where.
I'm met with this screen. Which keys do I press to type out the :wq command?
How do I save and quit after making changes in a config file? I was told to type out the command :wq but I do not know where.
I'm met with this screen. Which keys do I press to type out the :wq command?
The :wq is for Vi/Vim/Neovim, a different editor than the one you are using.
The one that you are using, nano, asks you to press Ctrl+O (denoted as ^O) to output (write) the file, and Ctrl+X (denoted as ^X) to exit.
In all the available commands of the nano editor (shown at the bottom of the window), ^ denotes Ctrl, while M- is used to denote Meta or Alt in most keyboards.
Just hit on Ctrl+X after your changes. It will then display a Do you want to save? message, and then you can hit Enter to save the file.