How do I open and edit a file in Linux terminal?

How do I open and edit a file in Linux terminal?
Answer
How to edit files in Linux
  1. Press the ESC key for normal mode.
  2. Press i Key for insert mode.
  3. Press :q! keys to exit from the editor without saving a file.
  4. Press :wq! Keys to save the updated file and exit from the editor.
  5. Press :w test. txt to save the file as test. txt.
 

Tìm kiếm

Back
Top