Solved

error linux

Posted on 2014-02-25
7
148 Views
Last Modified: 2014-10-15
E37: No write since last change (add ! to override)
0
Comment
Question by:thomasliju
7 Comments
 
LVL 68

Expert Comment

by:woolmilkporc
ID: 39887238
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
 
LVL 48

Expert Comment

by:Tintin
ID: 39887245
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
 
LVL 13

Accepted Solution

by:
Sandy earned 500 total points
ID: 39888018
:wq! => save the file and quit forcefully.
:q! => Without save and quit forcefully

TY/SA
0
Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

 
LVL 28

Expert Comment

by:serialband
ID: 39891040
In command mode ZZ will also save & quit.
0
 
LVL 68

Expert Comment

by:woolmilkporc
ID: 39892330
.. or :x
0
 
LVL 61

Expert Comment

by:gheist
ID: 39898818
:w! -> make it overwrite unwritable file
0
 

Author Closing Comment

by:thomasliju
ID: 40383679
the shortcut key helped.

Thank you.
0

Featured Post

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

948 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now