• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 188
  • Last Modified:

error linux

E37: No write since last change (add ! to override)
0
thomasliju
Asked:
thomasliju
1 Solution
 
woolmilkporcCommented:
You tried to leave the vi  / vim editor with "q" despite of the fact that you made changes to the file you opened.

You have 2 options:

- enter "q!" to quit and discard the changes

- enter "wq!" to save the changes and quit
0
 
TintinCommented:
That message means you are trying to quit the vi editor without saving changes to the file.

If you want to quit without saving, do:

:q!

If you want to save the changes, do:

:wq
0
 
SandyCommented:
:wq! => save the file and quit forcefully.
:q! => Without save and quit forcefully

TY/SA
0
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

 
serialbandCommented:
In command mode ZZ will also save & quit.
0
 
woolmilkporcCommented:
.. or :x
0
 
gheistCommented:
:w! -> make it overwrite unwritable file
0
 
thomaslijuAuthor Commented:
the shortcut key helped.

Thank you.
0

Featured Post

Take Control of Web Hosting For Your Clients

As a web developer or IT admin, successfully managing multiple client accounts can be challenging. In this webinar we will look at the tools provided by Media Temple and Plesk to make managing your clients’ hosting easier.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now