how to edit a file in terminal code example
Example 1: edit text file bash
sudo nano file.text
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 files from terminal linux
nano FileName.Extension
// nano MyWork.txt
// nano MyScript.py