Difference between revisions of "Linux Text Editors"

From GMOD
Jump to: navigation, search
m
m
 
Line 6: Line 6:
 
! Example
 
! Example
 
|-
 
|-
! xedit
+
! gedit
| Lighweight editor, and the easiest to use.  Just type.  Has save and quit buttons. Must have already started X (type <tt>startx</tt> at the shell prompt) to run xedit.  '''Hit the Save button twice before quitting xedit.'''
+
| Lighweight editor, and the easiest to use.  Just type.  Has save and quit buttons.
| <tt>xedit&nbsp;''filename.conf''</tt>
+
| <tt>gedit&nbsp;''filename.conf''</tt>
|-
+
|-  
 
! nano
 
! nano
| Lightweight editor that can be run directly in the shell window.  Use this if you don't know vi or emacs, and you haven't started X.
+
| Lightweight editor that can be run directly in the shell window.  Harder to use than gedit.
 
| <tt>nano&nbsp;''filename.conf''</tt>
 
| <tt>nano&nbsp;''filename.conf''</tt>
 
|-
 
|-
 
! vi or vim
 
! vi or vim
| These editors are very powerful and very cryptic.  If you don't already know vi, don't use this.
+
| These editors are very powerful and very cryptic.  If you don't already know vi, don't try to learn this during the course.
 
| <tt>vi&nbsp;''filename.conf''</tt>
 
| <tt>vi&nbsp;''filename.conf''</tt>
 
|-
 
|-
 
! emacs
 
! emacs
| Powerful and still somewhat cryptic editor.  Can be run before or after starting X.
+
| Powerful editor that is less cryptic than vi.
 
| <tt>emacs&nbsp;''filename.conf''</tt>
 
| <tt>emacs&nbsp;''filename.conf''</tt>
 
|}
 
|}
  
=== If you are in doubt, use xedit or nano ===
+
=== If you are in doubt, use gedit ===
  
 
[[Category:Linux]]
 
[[Category:Linux]]

Latest revision as of 23:38, 10 June 2010

A text editor is a simple editor for viewing, creating and updating text files. Linux has a wide variety of text editors available. The Linux image used in the summer school has a couple of text editors that are available. Instructors, when they created pages, will show whatever editor they prefer. However, you can use any editor you prefer. Some text editors.

Editor Comments Example
gedit Lighweight editor, and the easiest to use. Just type. Has save and quit buttons. gedit filename.conf
nano Lightweight editor that can be run directly in the shell window. Harder to use than gedit. nano filename.conf
vi or vim These editors are very powerful and very cryptic. If you don't already know vi, don't try to learn this during the course. vi filename.conf
emacs Powerful editor that is less cryptic than vi. emacs filename.conf

If you are in doubt, use gedit