Hello All,

The major difference between vi and touch is that touch update your file from current date but vi used to edit the file.

For Example:-

# touch hi

# vi hi