error linux

thomasliju
thomasliju used Ask the Experts™
on
E37: No write since last change (add ! to override)
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Most Valuable Expert 2013
Top Expert 2013

Commented:
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
Top Expert 2007

Commented:
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
Commented:
:wq! => save the file and quit forcefully.
:q! => Without save and quit forcefully

TY/SA
Ensure you’re charging the right price for your IT

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden using our free interactive tool and use it to determine the right price for your IT services. Start calculating Now!

In command mode ZZ will also save & quit.
Most Valuable Expert 2013
Top Expert 2013

Commented:
.. or :x
Top Expert 2015

Commented:
:w! -> make it overwrite unwritable file

Author

Commented:
the shortcut key helped.

Thank you.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial