Open a file that requires editing from the terminal by running:
Use the arrow keys on your keyboard to navigate to the part of the line that needs to be edited and then type one of the following to start editing:
Edit the text as necessary.
To exit the editing mode press Esc.
The following commands can be used to change entire lines in a file. If in edit mode, first exit using Esc, then navigate to the line to be amended:
To save any changes and keep working in vi, type:
Finally, to quit vi, choose from the following:
Gedit is a more user-friendly and powerful editor for systems with a GUI.
To run Gedit, open a terminal session and type:
To run Gedit and open a file, type:
Note: Add su or sudo to the above commands for root privileges to edit.
Go back to the How-to Guides main page.
Offering small businesses and individual users the opportunity to have their own website on the internet, our 'starter websites' are available for only £150.
To find out more and to see an example of the type of site offered, view our example starter website page.