Commands for Searching, Replacing, and Substituting in Vi Editor MCQS

By: Prof. Dr. Fazal Rehman | Last updated: May 30, 2025

11
Score: 0
Attempted: 0/11
Subscribe
1. : For substitution command, which command do we use?



2. : To replace ‘professor’ with ‘director’ throughout the whole file, which command do we use?



3. : For performing substitution on a file, what is the correct syntax?



4. : For searching a pattern in vi, which symbol is used?



5. : For interactive substitution, which flag do we use?



6. : For repeating the search in the same direction, which command do we use?



7. : For deleting all the instances of the string ‘manager’ in file003, which command do we use?



8. : The invalid command is



9. : What searches for the first instance of a pattern in the forward direction?



10. : What searches for the first instance of a pattern in the backward direction?



11. : To reverse the direction of repeating the search, which command do we use?



Leave a Comment

All Copyrights Reserved 2025 Reserved by T4Tutorials