Report this

What is the reason for this report?

what are the commands to save and exit?

Posted on September 10, 2014

Hallo,

I’m installing the Firewall with UFW on Ubuntu. When I run the command to set IPv6, I can not save and close the file. Please what is the key on the keyboard to save and exit?

I’m trying with ctrl+O and ctrl+X but it does not work.

Thak you! Gabriel



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

For the Linux noobs, like me, enter edit mode by pressing ‘i’, ‘l’, or ‘a’

once done editing hit ‘esc’ to go back to command mode

then :x + enter to save and exit

I can not close the editor. Help please!

What Editor are you using (vi, nano, etc…)

If you are on vi you can try: :wq to exit and write :q! to exit without saving :w to write and continue editing.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.