How do I create and edit a file in Linux?

How do I create and edit a file in Linux?
Answer
Using ‘vim’ to create and edit a file
  1. Log into your server via SSH.
  2. Navigate to the directory location you wish to create the file in or edit an existing file.
  3. Type in vim followed by the name of the file. …
  4. Press the letter i on your keyboard to enter INSERT mode in vim. …
  5. Start typing into the file.
 

Tìm kiếm

Back
Top