Vidyalelo
Computer Science · Q27

UNIX

Engineering and GATE · Computer Science · question 27

Q27

In vi editor, forward search is performed using the command.

A.
:pat
B.
?pat
C.
/pat
Answer
D.
All of the above
E.
None of the above

Answer: Option C

Solution

Answer: Option C
Solution:
In the vi editor, forward search is performed using the / command followed by the pattern you want to search for. This command allows you to search forward from the current cursor position for the specified pattern.
So, /pat is the command used in the vi editor for forward search.