1.

Which command is used for repeating the search in the same direction?(a) n(b) N(c) nn(d) NNI had been asked this question in an online interview.The above asked question is from Commands for Searching, Replacing and Substituting in Vi Editor topic in chapter The Vi Editor of Unix

Answer»

Correct choice is (a) n

The best explanation: For REPEATING a search in the same direction in which the PREVIOUS search was made with EITHER / or ? we can use ‘n’ command. In this way, we can press ‘n’ repeatedly to scan all instances of the PATTERN.



Discussion

No Comment Found

Related InterviewSolutions