How to edit files without vi, vim, nano, pico, joe (Ubuntu Linux)

The following assumes connection in a terminal programm which allows copy and paste.

  • cat myfilename
    • Copy content to clipboard
  • cat >myfilename
    • Paste from clipboard (or type new text)
    • Finish with [CTRL]-[d]