edit file ubuntu terminal code example
Example 1: command to edit in terminal linux
type nano followed by the file name
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
Example 4: nano edit a file
# Linux select a file using Nano
sudo nano edit "File name"