How to edit a text file in my terminal

Mad_ Questionnaire  picture Mad_ Questionnaire · Feb 29, 2016 · Viewed 246.2k times · Source

I'm using Linux mint and using the vi command to create text files, now that I created a text file and saved it. How do I get back into to edit the text file again?

vi helloWorld.txt

Answer

Gaurav Dave picture Gaurav Dave · Feb 29, 2016

Try this command:

sudo gedit helloWorld.txt

it, will open up a text editor to edit your file.

OR

sudo nano helloWorld.txt

Here, you can edit your file in the terminal window.