0 votes
in General by (31.4k points) | 14 views

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 (31.4k points)

1.6k questions

1.6k answers

81.3k users

2 Online Users
1 Member 1 Guest
Online Members
Today Visits : 1406
Yesterday Visits : 1254
Total Visits : 1885010
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.
1,644 questions
1,649 answers
81,347 users
@ 2022 V Katsanioti ,All rights reserved