If you are new to the linux environment, check out this tutorial for the vi editor.
http://www.cs.colostate.edu/helpdocs/vi.html