how to open and edit a file in linux code example
Example 1: edit text file bash
sudo nano file.text
Example 2: linux edit file
sudo nano filename.ext
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