Tuesday, July 14, 2009

LINUX USE AND WORK WITH "VI EDITOR"


The editor found nearly every UNIX and LINUX system is “VI editor”, originally written by Bill Joy. It is simple to use but incredible capable editor features of the some cryptic commands set. Older more experienced UNIX and LINUX user continue to use “VI” intensively during computing session.

The “VI” commands work by using insect or editing mode and a viewing (or command mode).

To start editing, tap the ! key to insert text. Or to append text, when finish use ESC key to toggle out of the insert or append modes and into the viewing (or command mode) to enter a command type a semicolon (;) write the file name and press . The “VI” supports many complex editing operations and numerous commands, to accomplish work by using a few basic commands.

DESCRIPTION

COMMANDS

CURSOR MOVEMENT

h, j, k, l (left, down, up & right).

DELETE CHARACTER

x.

DELETE LINE

dd.

MODE TOGGLE

ESC, insert (or i).

QUIT

q.

QUIT WITHOUT SAVING

q!

RUN AS SHELL COMMAND

Sh (use “exit” to return).

SAVE FILE

w.

TEXT SEARCH

/.

No comments: