VI editor – Linux command line editor

Rate this post

VI editor

 VI operates in three modes for performing different functions.

—-The Command Mode is used to enter commands that operates on text or control cursor motion.

—-The Input Mode is used to enter text.

—-The ex Mode (or last line mode) is used for line handling and substitution.

Input mode is used to insert (i and I), append (a and A), replace (r and R), change (s and S) text and open a line (o and O). This  mode is terminated by pressing [Esc]  .

The ex Mode is invoked by pressing a: in the command mode. You can save your work (:w) , exit the editor after saving (😡)  and quit without saving (:q and :q!).


Related Posts

  • 55
    No matter what work you do with the Unix/Linux system, you will eventually write some C programs or shell (or perl)  scripts. You may have also edit some of the system files at times. For all this you must learn to use an editor, and Unix provides a very versatile…
    Tags: mode, vi, command, editor, text
  • 35
    Welcome to the Linux Knowledge Base and Tutorial so you want to learn how to use the Bash command line interface (terminal) on Unix/Linux. Or, it's part of a subject you're doing and so you're learning it because you have to. Either way, that's great. You're learning how to use…
    Tags: linux, text, editor, command
  • 32
    The vi Editor Backup Using TAR Backing up your files using tar is very simple you just type a little command. tar -cvpzf /BackupDirectory/backupfilename.tar.gz /ImportantData/directory/path Let’s suppose i have directory called /imp-data on root and i want to make backup of this directory including sub directories on…
    Tags: command, linux, editor, shell, http://t, vi
  • 31   The mkdir command in the Unix, DOS, OS/2, and Microsoft Windows operating systems and in the PHP scripting language is used to make a new directory.
    Tags: command, scripting, linux
  • 30
    cd : Change Directory The cd command, which stands for "change directory", changes the shell's current working directory. It is a builtin command, which means that it is executed directly by your shell, instead of launching an external program. cd is a command-line OS shell commandused to change the current working directory…
    Tags: command, shell, linux

Leave a Reply

Your email address will not be published. Required fields are marked *

%d bloggers like this: