Editing files in Linux
Press the ESC key to go back to regular mode.
For insert mode, press the I Key.
Press the:q! to exit the editor without saving a file.
Type:wq to save the edited file and close the editor.
To save the file as test. txt, type:w test.