Use the Vim editor vim filename.type Command mode - Go to the first line :1 - Go to the last line :$ - Go to the line that you want to go :number Insert mode - Enter the insert mode, you can type the text whatever you want i - back to command mode from insert mode Esc - Make the text you type into the document :w - Quit the vim editor :q