vi editor and commands with vi editor

The vi command launches the text editor called vi.

Syntax

The syntax for the vi command is:
vi [options] [files]

Options

OptionDescription
-ccommandLaunch vi and execute the command in vi.
-lEdit a LISP file.
-LLists all files that were saved due to an editor or system crash.
-rfileRecover and open file after an editor or system crash.
-RRead-only.
+Position on last line of file in vi.
+nPosition on n line of the file in vi.

In vi editor enter i to go to edit mode

To save file Esc then :wq

Comments

Popular posts from this blog

gsutil Vs Storage Transfer Service Vs Transfer Appliance

SQL basic interview question