Create and edit file using terminal
Open the terminal and fire (if you need sudo):
sudo nano path/to/file/filename
ENTER
Type or paste the content you want
CTRL-G to see help options
CTRL-O to write to disk; confirm and save with ENTER.
alternative link download