Monday, June 7, 2010

vi editor in linux

The VI editor is a screen-based editor.
The VI editor allows a user to create new files or edit existing files. The command to start the VI editor is vi, followed by the filename.

For example open terminal and enter vim test.txt this will open a new file named test,if the file is not present it will create a new file, here to enter text in this file, press Insert button in keyboard, so that we can enter some text in the file and press Esc:wq for saving the file.

No comments:

Post a Comment