linux console edit text file code example
Example 1: edit text file bash
sudo nano file.text
Example 2: command to edit in terminal linux
type nano followed by the file name
sudo nano file.text
type nano followed by the file name