How To Save a File in Vi / Vim Text Editor

Originally published at: https://www.cyberciti.biz/faq/save-file-in-vi-vim-linux-apple-macos-unix-bsd/

I am a new Linux or UNIX like operating system user. I just wanted to create a file called demo.txt and save & close it using vi text editor. How do I save a file using vi? How can I save the file in Unix?


Linux sysadmin blog - Linux/Unix Howtos and Tutorials - Linux bash shell scripting wiki