To edit the file directly in the terminal, you can use nano or vim. Vim is difficult to learn but does pay dividends, as the keyboard shortcuts remove extra key strokes.