How do you exit a file in Linux?

How do you exit a file in Linux?
Answer
Press Esc to enter Command mode, and then
type :wq
to write and quit the file.

…

More Linux resources.

Command

Purpose

:wq or ZZ

Save and quit/exit vi.

:q!

Quit vi and do not save changes.

yy

Yank (copy a line of text).

p

Paste a line of yanked text below the current line.
 

Tìm kiếm

Back
Top