The pico program is a full-strength text editor, right from the command line.