edit file command line linux code example
Example 1: rename a file in linux
mv oldfile.txt newfile.txt
Example 2: edit text file bash
sudo nano file.text
Example 3: linux edit file
sudo nano filename.ext
Example 4: 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 5: edit files from terminal linux
nano FileName.Extension
// nano MyWork.txt
// nano MyScript.py