How to edit the content of a file in the server

Edit the content of a file
Written by DEL support01
Updated 7 months ago

To edit the content of a file follow those steps:

1- type the vim command + the name of the file you want to edit

Example: vim my_file.txt

2- press the buttum on your keyboard to be in insert mode

3- Edit or make your changes in the file

4- Press esc on your keyboard to come bac in command line mode

5- Type colum (:) wq ( w to save your changes and q to quit) 

Did this answer your question?