How do I exit VI in terminal?

Minh Phượng

New member
How do I exit VI in terminal?
Answer
To quit the vi editor without saving any changes you’ve made:
  1. If you are currently in insert or append mode, press Esc .
  2. Press : (colon). The cursor should reappear at the lower left corner of the screen beside a colon prompt.
  3. Enter the following: q!
 

Tìm kiếm

Back
Top