For example with vim (vi)
Usage is not easy for first time, better google it
vi filename
press i (insert)
then you can insert text
press escape to leave insert mode
enter :wq (for write & quit)
Or simply copy the file to your PC, edit there and copy back