edit file in shell code example
Example 1: linux edit file
sudo nano filename.ext
Example 2: 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
Example 3: edit a file linux
vi filename.extension
//press i to insert into file
//press ESC to enter menu
//Type :wq to save data