VI Editor

To create or to open a file for editing[root@comp1 ~]# vi Example:-[root@comp1 ~]# vi fullreportTo go to insert modei - inserts the text at current cursor positionr - replace a…