Knowledge Base:Edit a configuration file

Synopsis
Step by step to edit a config file.

Environment
All the time.

Analysis
Config files are the default method to configure a software. Use a text editor to edit the file. The default text editor is nano.

Resolution
Start Nano by typing nano -w in the terminal followed by file path and name. To edit the file, type the following command:

Nano now shows the content of the text file. Navigate through the text with the arrow keys and make edits as desired.

At the bottom Nano shows shortcuts for common actions (save, exit, etc.). The shortcut to save is shown as "^O". Users must prefix the shortcut with the key, so to save press +. To exit press +.