How to save file in vi editor?

Ads
 

How to save file in vi editor?

Hi,

I am trying to find commands to save the file in the vi editor? Can anyone show me the example and explain me the commands?

Thanks

View Answers

June 16, 2016 at 7:32 PM

Hi,

Here are the details:

How to save file in vi editor?

  1. Press 'Esc' button to go to the Command mode and ':' appears
  2. Type :w to save the file
  3. Type :wq to save and quit
  4. Type :q! to quit without saving
  5. Type :wq! to force write to file even if it does not have write permission
  6. Type: x to write and quit and this command is short for :wq
  7. Type :qa to quit all

Thanks


June 18, 2016 at 2:42 AM

Here is the video instruction of saving the file in vi editor:

Thanks

Ads









Related Tutorials/Questions & Answers:
How to save file in vi editor?
How to download and save a file from Internet using Java?
Advertisements
How to create file and save it into user defined path using jsp/servlet?
How i upload file and save that record in database using JSP?
How to save form data to a csv file using jquery or ajax
how to save html form data into .csv file using only jsp.
How to save run time created text-file on a disk using jsp/servlet?
how to save an input to jsp page in a text file?ave an input given b
upload and save the file
how to modify hosts file in ubuntu
Text field save as word file
How to download web page table data, export the table records in an excel file and save
How to save value in JSP
ModuleNotFoundError: No module named 'komica-save-file'
ModuleNotFoundError: No module named 'komica-save-file'
ModuleNotFoundError: No module named 'odoo8-addon-save-translation-file'
save excel file with save and open dilog box
ModuleNotFoundError: No module named 'editors'
Which extension i use for save hibernate file.
why java file save as its class name
How to save image on the server by applet
How to save image on the server by applet
ModuleNotFoundError: No module named 'odoo10-addon-account-bank-statement-import-save-file'
ModuleNotFoundError: No module named 'odoo10-addon-account-bank-statement-import-save-file'
ModuleNotFoundError: No module named 'odoo8-addon-account-bank-statement-import-save-file'
ModuleNotFoundError: No module named 'odoo8-addon-account-bank-statement-import-save-file'
How to save database data into excelsheet using hibernate
how to save a gui form in core java
ModuleNotFoundError: No module named 'vi'
how to save images in oracle using JSP
how to save images in oracle using JSP

Ads