Home Privacy Policy Feedback Link to us Site Map Forums

UNIX Basic commands: vi


The vi command launches the text editor called vi.

The syntax for the vi command is:

vi [options] [files]

options:

-ccommand Launch vi and execute the command in vi.
-l Edit a LISP file.
-L Lists all files that were saved due to an editor or system crash.
-rfile Recover and open file after an editor or system crash.
-R Read-only.
+ Position on last line of file in vi.
+n Position on n line of the file in vi.

Examples:

vi + tech


* Please note that there are many flavors of UNIX, so if in doubt, consult your man pages.