Save and Exit a file in Vim or Vi

How to Save a File in Vim or Vi and Quit the Editor on Linux

You need to enter the command mode in vim / vi to save and exit a file.

How to Find and Replace Text in Vim on Linux

vim is one of the most popular file editors in Linux. Part of the popularity is due to the command…