open and edit file in linux code example
Example 1: linux edit file
sudo nano filename.ext
Example 2: edit a file linux
vi filename.extension
//press i to insert into file
//press ESC to enter menu
//Type :wq to save data
sudo nano filename.ext
vi filename.extension
//press i to insert into file
//press ESC to enter menu
//Type :wq to save data