error linux

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

Expert Comment

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
LVL 48

Expert Comment

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:


If you want to save the changes, do:

LVL 13

Accepted Solution

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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

LVL 29

Expert Comment

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

Expert Comment

ID: 39892330
.. or :x
LVL 62

Expert Comment

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

Author Closing Comment

ID: 40383679
the shortcut key helped.

Thank you.

Featured Post

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
High Bandwidth Usage 6 58
nagios 4 php error after installation 6 95
Martian Packets Unix 5 54
Linux mount of Windows Shared Now Fails 8 43
Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
FreeBSD on EC2 FreeBSD ( 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…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

831 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