Sunday, July 20, 2014

Linux/Unix editors

Unix Editors

  • What is a text editor?
    • A text editor is a program which enables you to create and manipulate character data (text) in a computer file.
    • A text editor is not a word processor although some text editors do include word processing facilities.
    • Text editors often require "memorizing" commands in order to perform editing tasks. The more you use them, the easier it becomes. There is a "learning curve" in most cases though.
  • There are several standard text editors available on most UNIX systems:
    • ed - standard line editor - interactive, buffered, line oriented
    • ex - extended line editor
    • vi - a visual editor; full screen; uses ed/ex line-mode commands for global file editing - interactive, buffered, screen oriented
    • sed - stream editor for batch processing of files - non interactive, non-buffered, stream oriented
    • vim - upgraded version of vi
    • xemacs - popular open source editor
  • In addition to these, other local "favorites" may be available:
    • emacs - a full screen interactive editor and much more
    • nedit - another GUI style text editor similar to emacs.
    • pico - an easy "beginner's" editor
Each of these editors can be invoked by typing their name at the prompt, along with the file name. For example, to invoke nedit we issue the command:
nedit filename
or
nc filename 

Going in details


0 comments:

Post a Comment