How do I search for text in vi?



How do I search for text in vi?..

Answer / Bhanu Bairwa

To search for text in vi, you can use the '/' command followed by your search term. For example, if you want to search for the word 'example', you would press '/example' and then hit Enter.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Unix Commands Interview Questions

what are the different commands used to view the contents of a file?

5 Answers  


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,


29. How to display top 10 users Who | head -10 | wc –w

4 Answers   TCS,


What is ‘ps’ command for?

1 Answers  


What is clustering in HP and how it's work?

1 Answers   HP,


in UNIX,what is the command to remove directory with files?

10 Answers  


what is exact definition of operating system?

13 Answers  


What is the comma to display different lines that are found when compare two files?

1 Answers  


What is the Unix file system hierarchy?

2 Answers  


How do you find path of a directory? Give its syntax.

7 Answers  


what is virtual machine?

2 Answers   Infosys,


what is the difference between pipe(|) and tee command..

3 Answers   Cap Gemini, Rolta,


Categories