Call now: 252-767-6166  
Oracle Training Oracle Support Development Oracle Apps

 
 Home
 E-mail Us
 Oracle Articles
New Oracle Articles


 Oracle Training
 Oracle Tips

 Oracle Forum
 Class Catalog


 Remote DBA
 Oracle Tuning
 Emergency 911
 RAC Support
 Apps Support
 Analysis
 Design
 Implementation
 Oracle Support


 SQL Tuning
 Security

 Oracle UNIX
 Oracle Linux
 Monitoring
 Remote s
upport
 Remote plans
 Remote
services
 Application Server

 Applications
 Oracle Forms
 Oracle Portal
 App Upgrades
 SQL Server
 Oracle Concepts
 Software Support

 Remote S
upport  
 Development  

 Implementation


 Consulting Staff
 Consulting Prices
 Help Wanted!

 


 Oracle Posters
 Oracle Books

 Oracle Scripts
 Ion
 Excel-DB  

Don Burleson Blog 


 

 

 


 

 

   

 

  Oracle Tips by Burleson

Inside vi - Editor modes of operation

The visual editor, more commonly known as vi (pronounced “vee eye”) is a very powerful text editor, created especially for those who are touch typists. While the editor is quite powerful, many a newbie complains that its’ commands are difficult to learn and cumbersome to use. You must realize that vi was invented long before the introduction of the Windows environment and provided powerful features for administrators and programmers using Unix command line environments.

In this chapter we will show you how to use the vi text editor to create and modify Linux shell scripts. We will also review how to mark the script files as executable programs.

We have chosen to demonstrate vi because it is included within all Linux distributions. Those more familiar with Windows environments may find it more convenient and intuitive to use a GUI editor if Gnome or KDE environments are available on your Linux server.

For all intents and purposes you can consider that the vi editor operates in two modes; command mode and insert mode. When you first invoke vi you will be in command mode. Whenever you are in insert mode, you can return to command mode by pressing the escape (esc) key.

Commands within vi are case sensitive. Keeping that in mind, we will see that a lower case a for instance, performs differently than an upper case A.

Starting vi

In order to start vi from the Linux command prompt, just type vi followed by the name of the new file you’d like to create or the name of an existing file you’d like to edit. If you are editing a new file, you will be presented with a screen with a column of tildes (~) as shown in the following example. This indicates that you are editing an empty file.

vi display for an empty file

~
~
~
~
~
~
~
~
~
~
~
~
~
~
"empty.fil" [New File]


Exiting vi

As indicated above, to save the file and exit vi we use the :wq command, but what if we’ve made a mess of things and just want to exit vi without writing the file to disk? To exit without first saving the file, use the :q! command. Using just the :q command will prompt you to save the file, so don’t forget to place the bang character (!) or exclamation point at the end of the command.
 

The above book excerpt is from:

Easy Linux Commands
Working Examples of Linux Command Syntax

ISBN: 0-9759135-0-6   

Terry Clark 

http://www.rampant-books.com/book_2005_1_linux_commands.htm 

��  
 
 
Oracle Training at Sea
 
 
 
 
oracle dba poster
 

 
Follow us on Twitter 
 
Oracle performance tuning software 
 
Oracle Linux poster
 
 
 

 

Burleson is the American Team

Note: This Oracle documentation was created as a support and Oracle training reference for use by our DBA performance tuning consulting professionals.  Feel free to ask questions on our Oracle forum.

Verify experience! Anyone considering using the services of an Oracle support expert should independently investigate their credentials and experience, and not rely on advertisements and self-proclaimed expertise. All legitimate Oracle experts publish their Oracle qualifications.

Errata?  Oracle technology is changing and we strive to update our BC Oracle support information.  If you find an error or have a suggestion for improving our content, we would appreciate your feedback.  Just  e-mail:  

and include the URL for the page.


                    









Burleson Consulting

The Oracle of Database Support

Oracle Performance Tuning

Remote DBA Services


 

Copyright © 1996 -  2017

All rights reserved by Burleson

Oracle ® is the registered trademark of Oracle Corporation.

Remote Emergency Support provided by Conversational