How we will execute previous command in vi editor?

Answers were Sorted based on User's Feedback



How we will execute previous command in vi editor?..

Answer / aparna

Use dot(.) operator to execute previous command in command
mode

Is This Answer Correct ?    8 Yes 0 No

How we will execute previous command in vi editor?..

Answer / kalyani

!vi editor

Is This Answer Correct ?    6 Yes 4 No

How we will execute previous command in vi editor?..

Answer / annhaq

:! (This command on vi editor will run the script which ur
into presently)

:!%(Executes the previous command)

Is This Answer Correct ?    3 Yes 2 No

Post New Answer

More Unix Commands Interview Questions

How to replace the exact word in vi editor?? suppose a file contains words like amaze,amazed,amazement in some of the line.But i want to replace only 'amaze' with delight but don't wanna replace amazed or amazement. thanks

6 Answers   Polaris, Tech Mahindra,


Hi All, Can you please let me know how to grep for a particular pattern in unix. I want to print the dates from the file exp.txt. the date pattern is DD:MM:YYYY, I just want to print all the dates from the file exp.txt.

8 Answers   Concentrix, IBM, Symantec, TCS,


What is awk used for?

0 Answers  


distinguish between user mode and kernel mode?

4 Answers   Infosys,


What do know about tee command and its usage?

0 Answers  






what are filters?

6 Answers  


what is telnet?

6 Answers  


what is the cmd to remove the comment lines from a file and to display the original text without comments? thanks in advance......

5 Answers  


The rm command removes links to file. What does this mean? How then is a file deleted from the file system?

5 Answers  


Which command should you use to find the remaining disk space in unix server?

0 Answers  


how to remotely move a file ??? that mean how to move a file one machine to another machine ???

10 Answers   Altair,


what are the different hardwares available?

1 Answers  


Categories