How do I edit a file in Linux terminal?

How do I edit a file in Linux terminal?
Answer
Edit the file with vim:
  1. Open the file in vim with the command “vim”.
  2. Type “/” and then the name of the value you would like to edit and press Enter to search for the value in the file.
  3. Type “i” to enter insert mode.
  4. Modify the value that you would like to change using the arrow keys on your keyboard.
 

Tìm kiếm

Back
Top