sudo vim /file/path/file.txt
Hit i to go to Insert mode.
Type some text.
Hit Escape to return to Normal mode.
Type :w test.txt to save your work
Type :q to quit
Copyright © 2020 coding
Powered by WordPress and Origin