Posted inLinux How to Save a File in Vi / Vim and Exit (:wq, :x, ZZ)Quick Answer: To save a file in Vi/Vim and exit, press Esc to enter normal mode, then type :wq and press Enter. You can also use :x or ZZ to… Posted by Saurabh Khan May 23, 2024