Archive for February, 2009

How to execute a command with in VI

You can use “:!” sequence followed by the command string in the command mode of VI.The following steps explain the procedure.

Type Esc to enter in to VI command mode

Type colon (:) and (!) followed by actual command string.

For example, if you want to run “ls” command, you would need to type “:!ls” in VI.