How do I open a file in Linux terminal?

Duyên Trương

New member
How do I open a file in Linux terminal?
Answer
Part 3 Using Vim
  • Type vi filename.txt into Terminal.
  • Press ↵ Enter .
  • Press your computer’s i key.
  • Enter your document’s text.
  • Press the Esc key.
  • Type :w into Terminal and press ↵ Enter .
  • Type :q into Terminal and press ↵ Enter .
  • Reopen the file from the Terminal window.
 

Tìm kiếm

Back
Top