I can't save changes after editing
sudo vi /etc/network/interfaces
Text before editing:
auto lo
iface lo inet ...
Edited to:
auto eth0
iface eth0 inet dhcp
What key combination or sequence must I press to save this?
vim
I can't save changes after editing
sudo vi /etc/network/interfaces
Text before editing:
auto lo
iface lo inet ...
Edited to:
auto eth0
iface eth0 inet dhcp
What key combination or sequence must I press to save this?
Best Answer
You're probably in editing/insert mode. You need to type the following sequence :
:
(colon) then pressw
and finallyq
to write and quit (or just:w
to write without quitting)