how to edit a text file in terminal code example
Example: edit file terminal
vim filename.txt
//press i to enter insert mode
//press esc to exit insert mode
type :wq then enter to leave vim
vim filename.txt
//press i to enter insert mode
//press esc to exit insert mode
type :wq then enter to leave vim