2.4k questions

2.4k answers

100.0k users

17 Online Users
0 Member 17 Guest
Today Visits : 537
Yesterday Visits : 700
Total Visits : 2597399

Categories

Notice

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

Information

Viktoria Katsanioti,

Kaliningrad,

Russia,

matizegr@yahoo.com

0 votes
65 views
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)
...