How do I search for a specific word in VI Linux?

How do I search for a specific word in VI Linux?
Answer
Searching and Replacing in vi
  • vi hairyspider. For starters, access vi and a specific file.
  • /spider. Enter command mode, then type / followed by the text you’re looking for.
  • Press to find the first occurrence of the term. Type n to find the next one.
 

Tìm kiếm

Back
Top