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 an text editor to edit the file. The default text editor is nano.

Resolution
Start nano by typing in your terminal nano -w followed by file path and name. E.g. to edit the :

Nano now shows the content of the text file and you can edit the file. Navigate through the text with the arrow keys.

At the bottom nano shows shortcuts for common actions, e.g. save or exit. The shortcut to save is shown as "^O". You have to prefix the shortcut with the key, so to save press +. To exit press +.