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!).
- 35Welcome 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…
- 32The vi Editor http://t4test.com/blog/unix-linux-shell-script-introduction-to-shell-scripting/ http://t4test.com/blog/read-making-shell-script-interactive/ http://t4test.com/blog/cpio-a-backup-program/ 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…