Skip to content

Instantly share code, notes, and snippets.

@wolfsage
Created January 30, 2017 23:43
Show Gist options
  • Save wolfsage/bd287955c666547e197767efc9ab9850 to your computer and use it in GitHub Desktop.
Save wolfsage/bd287955c666547e197767efc9ab9850 to your computer and use it in GitHub Desktop.
In some cases nano will try to dump the buffer into an emergency file.
This will happen mainly if nano receives a SIGHUP or SIGTERM or runs
out of memory. It will write the buffer into a file named nano.save if
the buffer didn't have a name already, or will add a ".save" suffix to
the current filename. If an emergency file with that name already
exists in the current directory, it will add ".save" plus a number
(e.g. ".save.1") to the current filename in order to make it unique.
In multibuffer mode, nano will write all the open buffers to their
respective emergency files.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment