How to replace String "a" with String "b" in whole file of the vi editor?

Submitted by: Administrator
:g/string1/s//string2/g

ex:
:g/a/s//b/g
Submitted by: Administrator

Read Online Editors Job Interview Questions And Answers