ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage   interview questions urls   External Links  Contact Us     Login  |  Sign Up                      
Do you have a collection of Interview Questions and interested to share with us!!
Please send that collection to along with your userid / name. ThanQ
Google
 
Categories >> Software >> Editors >> Vi-Editor
 
 


 

Back to Questions Page
 
Question
What does the /text command do?
Rank Answer Posted By  
 Question Submitted By :: Swapna
I also faced this Question!!   © ALL Interview .com
Answer
/text:  it will search for the string. after pressing enter 
it takes u to that text location.

Thank you,
Raam  ramumcato@yahoo.com
 
0
Raam
 
 
Question
Which command is used to replace many characters?
Rank Answer Posted By  
 Question Submitted By :: Swapna
I also faced this Question!!   © ALL Interview .com
Answer
By pressing "Esc"+i key.
 
0
Gopal
 
 
Question
How to enter from command mode to insertion mode?
Rank Answer Posted By  
 Question Submitted By :: Swapna
I also faced this Question!!   © ALL Interview .com
Answer
There are several commands that put the VI editor into 
insert mode. The most commonly used commands to get into 
insert mode are a and i.
 
0
Gopal
 
 
 
Question
What is the command used to replace many characters?
Rank Answer Posted By  
 Question Submitted By :: Swapna
I also faced this Question!!   © ALL Interview .com
Answer
this question should bhave been for many same words that 
appear many times, for this press escape to go to command 
line, then type
:%s/old_word/new_word/g
g for global
 
0
Hawai
 
 
Question
What is the difference between ZZ and :wq commands?
Rank Answer Posted By  
 Question Submitted By :: Swapna
I also faced this Question!!   © ALL Interview .com
Answer
I guess both do the same task..! in the sense :wq,:x and ZZ
are used to save the changes of edited to storage and quit..
but to jot down the difference a foolish one.. :wq and :x
requires <enter> key to be pressed to fire this commands
where as ZZ works as a shortcut (hot) key.. it some what
like for prior commands we are requesting Vi to do the work
and later command we are telling/commanding
 
0
Pravin
 
 
Question
What is the format of vi command?
Rank Answer Posted By  
 Question Submitted By :: Swapna
I also faced this Question!!   © ALL Interview .com
Answer
vi filename

Raam
ramumcato@yahoo.com
 
0
Raam
 
 
Question
How to return to shell without leaving vi editor?
Rank Answer Posted By  
 Question Submitted By :: Swapna
I also faced this Question!!   © ALL Interview .com
Answer
In the vi Press 'Esc' and ':' then Type 'shell'
And you can go to shell and do different commands.
To return to vi editor type 'exit' in shell prompt.
 
3
Prakash
 
 
Question
How to append a file to current file?
Rank Answer Posted By  
 Question Submitted By :: Swapna
I also faced this Question!!   © ALL Interview .com
Answer
to append file1 to file2. first open file1 in vi editor
using vi file1 command. then to append file1 to file 2 just
use the following command.

:w>>file2 so file 1 will be appended to file 2
 
0
B2p
 
 
Question
what does the c$ command do from command mode?
Rank Answer Posted By  
 Question Submitted By :: Swapna
I also faced this Question!!   © ALL Interview .com
Answer
c$ will begin from the character under the curser till the
end of line. so when you use this command it will show you $
sign at the end of the line and you can change till that point.
 
0
B2p
 
 
Question
what is the command used to set margin in vi editor?
Rank Answer Posted By  
 Question Submitted By :: Swapna
I also faced this Question!!   © ALL Interview .com
Answer
Press ESC followed by colon setnu 

eg     => :setnu
 
0
Saravanan
 
 
Question
what is the command used to append text after current line?
Rank Answer Posted By  
 Question Submitted By :: Swapna
I also faced this Question!!   © ALL Interview .com
Answer
:m,n w >> filename
 
0
Ajay
 
 
Question
what are the two different modes in vi editor?
Rank Answer Posted By  
 Question Submitted By :: Swapna
I also faced this Question!!   © ALL Interview .com
Answer
Command Mode
Insert Mode
LastLine mode

Raam
ramumcato@yahoo.com
 
0
Raam
 
 
Question
what are the different  delete commands  used in vi editor?
Rank Answer Posted By  
 Question Submitted By :: Swapna
I also faced this Question!!   © ALL Interview .com
Answer
dd -- for delete line
x - single character deletion
dw - delete word

Raam
ramumcato@yahoo.com
 
0
Raam
 
 
 
Back to Questions Page
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com