Many times, after we opened a file using Vi, we may want to open another file or save the file into another location.
Here are the commands:
Press [Esc] key, then press colon (:), at the left corner of your editor, you can type the following commands to save the file.
Quit without saving changes i.e. discard changes
Read data from file called fileName
Write and quit (save and exit)
Write to file called fileName (save as)