2.4k questions

2.4k answers

98.0k users

6 Online Users
1 Member 5 Guest
Online Members
Today Visits : 1252
Yesterday Visits : 1735
Total Visits : 2425249



Dear All, These are my answers from Quora and primarily Google; please check the answer and from others sites; the answers are free and without any liability.To make a decision, write down all of the positives and negatives on a piece of paper.Thank you,

Elias Katsaniotis, MSc


Viktoria Katsanioti,




0 votes
in General by (46.5k points)

1 Answer

0 votes

I do not remember with nano, but with vi, from my Unix/linux years:

vi /etc/hosts or sudo vi/etc/hosts

you have to write :w! to write or :wq!

Press Esc to enter Command mode, and then type :wq to write and quit the file. The other, quicker option is to use the keyboard shortcut ZZ to write and quit. To the non-vi initiated, write means save, and quit means exit vi.

source An introduction to the vi editor.

with ! you modify the file

by (46.5k points)